asciidoctor / asciidoctor-extensions-lab

A lab for testing and demonstrating Asciidoctor extensions. Please do not use this code in production. If you want to use one of these extensions in your application, create a new project, import the code, and distribute it as a RubyGem. You can then request to make it a top-level project under the Asciidoctor organization.
Other
105 stars 101 forks source link

An Extension for Defining Additional Replacements #102

Closed polyglot-jones closed 2 years ago

polyglot-jones commented 5 years ago

An AsciiDoctor extension that provides certain additional replacements (of the sort that would have been set in the [Replacements] section of asciidoc.conf when using AsciiDoc Python). This first cut includes (o) for the degree symbol, 1/2, 1/4, 3/4, and a dozen fairly common words that contain acutes, umlauts, and/or cedillas (entree, cliche, soupcon, naive, etc.)

polyglot-jones commented 5 years ago

BTW, Despite being known as polyglot-jones, my Ruby is weak. So, if there's a better way to write this code, I'm all ears.