Re: Changing text content in a TreeProcessor extension

Posted by MattBlissett on
URL: https://discuss.asciidoctor.org/Changing-text-content-in-a-TreeProcessor-extension-tp8115p8124.html

I don't have much experience with Ruby, but I discovered it supports open classes, which is a neater way to get the source from blocks that don't have a suitable method already.

The resulting extension is now merged in to my repository here: https://github.com/gbif/gbif-asciidoctor-toolkit/blob/master/gbif-extensions/lib/glossary.rb

And the (currently in draft) largest document this is intended for is here: https://docs.gbif-uat.org/georeferencing-best-practices/1.0/en/#introduction