Login  Register

Re: extension preprocessor

Posted by asotobu on Oct 27, 2013; 8:55pm
URL: https://discuss.asciidoctor.org/extension-preprocessor-tp886p890.html

Cool I am expecting it too to learn more about extensions. 
The passthrough example works perfectly. I have created an Extension that it is auto-installed and let users use arrows-and-boxes project inside AsciiDoc documents

El diumenge 27 d’octubre de 2013, mojavelinux [via Asciidoctor :: Discussion] ha escrit:

Actually, it is possible to read the lines so that the includes get processed. Stay tuned for an example. I'm preparing one.

-Dan

On Oct 27, 2013 7:09 AM, "plane [via Asciidoctor :: Discussion]" <[hidden email]> wrote:
asotobu wrote
Preprocessors 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.
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.  

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.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML



If you reply to this email, your message will be added to the discussion below:
http://discuss.asciidoctor.org/extension-preprocessor-tp886p889.html
To unsubscribe from extension preprocessor, click here.
NAML


--
Enviat amb Gmail Mobile