Actually, it is possible to read the lines so that the includes get processed. Stay tuned for an example. I'm preparing one.
-Dan
Thanks for your reply. But the problem is that the 'include' macro is not being executed during render time - I am not processing it during my preprocessing.asotobu wrotePreprocessors are executed before starting to render the document, so include macro is not executed, it is executed during render time, for this reason the include content is there during preprocessor. In this case what you is a TreeProcessor or a PostProcessor I guess.
Below is a screenshot of the output:
You can see the include line included verbatim three lines down from the image. Without my preprocessing step, the contents of the included file appear at that point.
I believe I have inadvertently 'turned off' processing of the include macro by my use of the preprocessor, and I'm wondering how to correct that mistake.
If this is not possible, I may have to explore the other methods, but my transformation needs to occur before any rendering.
cheers,
Peter.
If you reply to this email, your message will be added to the discussion below:http://discuss.asciidoctor.org/extension-preprocessor-tp886p888.htmlTo start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML
Free forum by Nabble | Edit this page |