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.
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:
README.adoc: Listed.
lib/autoxref-treeprocessor.rb: Adding the implementation.
lib/autoxref-treeprocessor/sample.adoc: Adding the sample for demonstration.
Screenshot (using lib/autoxref-treeprocessor/sample.adoc):
Without the extension:
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:
With the extension: