Re: Doxia Macros

2017-06-13 Thread Petar Tahchiev
Hi Plamen, thank you for your feedback. Indeed I had a look at the XHTMLParser last night and it seems that the macro calls are called inside it, during the parsing of the template. And yes, that makes it impossible for the asciidoc plugin to use these macros, because, as you said the

Re: Doxia Macros

2017-06-13 Thread Plamen Totev
And one last thing - `AsciidoctorParser` actually extends `org.apache.maven.doxia.module.xhtml.XhtmlParser` but I don't think it delegates the parsing to it in any way. It's strange why it extends it then. Maybe I'm missing something. On Tue, Jun 13, 2017 at 11:49 PM, Plamen Totev

Re: Doxia Macros

2017-06-13 Thread Plamen Totev
Hmm, now that I took a quick look at the `AsciidoctorParser` it looks like what I've said does not apply for the Asciidoctor Maven Plugin. `AsciidoctorParser` is actually cheating a bit - it does not use the `Sink` API. It just parses the AsciiDoc content and dumps it as raw text [1]. One way to

Re: Doxia Macros

2017-06-13 Thread Plamen Totev
Hi, I have limited understanding on the matter and what I going to say may not be 100% correct, but I hope it will help you to get started. > I'd like to work on supporting macros for the asciidoctor-maven-plugin. Any > idea on what to look at? What defines whether a macro is supported or not? `