Closed maxandersen closed 6 years ago
Right you are!
Normally, you don't need to require the extensions since it gets autoloaded. But autoload only triggers if you use the qualified classname, Asciidoctor::Extensions
. The technique used in this file to shorten classnames causes autoload to be bypassed. I was not aware of that.
There was no proper
requires
in showcomments extension which made it fail.Added proper
requires
and now it works when you run (note the-a showcomments
):asciidoctor -r ./lib/showcomments-preprocessor.rb -a showcomments lib/showcomments-preprocessor/sample.adoc
fixes #82