return createBlock(parent, "paragraph", "*mytext*", attributes, options); <1>
<1> Note that the output is in AsciiDoc format
But the problem is that BlockMacroProcessor extension passes the paragraph directly to output, so instead of passing *mytext* I should send "mytext" in html. But this would be a problem because if the output is not an html, (for example a pdf) the extension would not work.
I have been thinking creating an IncludeProcessor extension:
So now I will be able to push data to reader and be able to send text in AsciiDoc format.
Do you think it would be useful to have an extension as a mix between include and block macro extension?