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
104 stars 101 forks source link

Create new extension: padding-counter-inline-macro #89

Closed andrewcarver closed 2 years ago

andrewcarver commented 6 years ago

To create an extension that utilizes Ruby's amazing String#succ! method, and supports therefore 'padding'-style counters--or just about any style you can think of. This was in response to, and inspired by, the AsciiDoctor discussion-topic at http://discuss.asciidoctor.org/Counters-with-Zero-Padding-td6267.html