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 asciidoctor

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 wrote: > Hmm,

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 e

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? `

Doxia Macros

2017-06-13 Thread Petar Tahchiev
Hey guys, reading at this: https://maven.apache.org/doxia/macros/ == Macros are currently only supported for APT, Xdoc and FML formats. Starting with Doxia 1.7 (maven-site-plugin 3.5), macros are also supported for XHTML and Markdown. == As I'm writing my documentation on Asc