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

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

I couldn’t find a way to do that.  What I did was to replace the text in a tree processor.  I’m not sure if it would work in an inline macro.  Have you tried returning either

 "pass:[\"<abbr title='Best Friends Forever'\>BFF</abbr>\”]”

or

"<abbr title='Best Friends Forever'\>BFF</abbr>”

? You aren’t supposed to return text rather than a node but I believe it still works.

David Jencks

On Oct 29, 2020, at 1:49 PM, holyjak [via Asciidoctor :: Discussion] <[hidden email]> wrote:

Hi, thank you!

Sorry for not being clear. I already have one inline macro that works (the github issue link example from the AsciidoctorJ page). So creating a macro and getting it into the processing is not an issue. What is the issue is how to pass verbatim html so that I achieve the desired effect described above.

(I guess it isn't relevant but I use the Java API from Clojure, using its build tool.)


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