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

Add list-of-figures extension #128

Closed Alwinator closed 2 years ago

Alwinator commented 2 years ago

I needed this extension for a project of mine. Additionally, I saw in this discussion and this issue that I am not the only one, so I thought it would be a nice contribution :)

PS: I only learned Ruby to write this extension, so please be nice.

Sample:

== Test the List of Figures Macro

.The wonderful linux logo
image::https://upload.wikimedia.org/wikipedia/commons/3/35/Tux.svg[Linux Logo,100,100]

.Another wikipedia SVG image
image::https://upload.wikimedia.org/wikipedia/commons/thumb/4/4f/SVG_Logo.svg/400px-SVG_Logo.svg.png[SVG,100,100]

=== List of figures

tof::[]

Rendered:

Alwinator commented 2 years ago

Moved to https://github.com/Alwinator/asciidoctor-lists