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

automatic xref generator #57

Closed alterakey closed 8 years ago

alterakey commented 8 years ago

Hello, I've wrote an automatic xref generator extension.

It is a Treeprocessor extension that makes AsciiDoctor refer sections and titled images/tables/listings by reference numbers in the document (e.g. Figure (chapter number).1, (chapter number).2, ... for images). Reference numbers are reset by chapters.

Please review and hopefully merge. Thanks. -t

Changes:

Screenshot (using lib/autoxref-treeprocessor/sample.adoc): Without the extension: before

With the extension: after

mojavelinux commented 8 years ago

I like it! Great work!

alterakey commented 8 years ago

Thank you! Keep up good work!