Re: How to create inline macro producing HTML? (In AsciidoctorJ)

Posted by mojavelinux on
URL: https://discuss.asciidoctor.org/How-to-create-inline-macro-producing-HTML-In-AsciidoctorJ-tp8313p8328.html

> It is deprecated? Documentation does not mention that and the example in the user manual returns string.

The right designation to use is discouraged. You should return a Node if possible.

If you want to return raw HTML, you can return an inline node with the context "quoted" and empty subs (that just results in the content being passed through). The create_inline_pass helper, which does exactly that, was added in Asciidoctor 2.

Best Regards,

-Dan

On Fri, Oct 30, 2020 at 2:34 PM abelsromero [via Asciidoctor :: Discussion] <[hidden email]> wrote:
It is deprecated? Documentation does not mention that and the example in the user manual returns string.
In that case, please @Jakub  file an issue in Asciidoctorj repo, I will add my findings.
So far I've seen that AsciidoctorJ and Asciidoctor return different errors, so there's definetly something to improve.


If you reply to this email, your message will be added to the discussion below:
https://discuss.asciidoctor.org/How-to-create-inline-macro-producing-HTML-In-AsciidoctorJ-tp8313p8325.html
To start a new topic under Asciidoctor :: Discussion, email [hidden email]
To unsubscribe from Asciidoctor :: Discussion, click here.
NAML


--
Dan Allen (he, him, his) | @mojavelinux | https://twitter.com/mojavelinux