Re: How to create inline macro producing HTML? (In AsciidoctorJ)
Posted by
abelsromero on
URL: https://discuss.asciidoctor.org/How-to-create-inline-macro-producing-HTML-In-AsciidoctorJ-tp8313p8322.html
Hi,
Good news is that returning plain string works fine in Java and should in Clojure.
@Override
public Object process(ContentNode parent, String target, Map<String, Object> attributes) {
return "<abbr title=\"" + attributes.get("1") + "\">" + target + "</abbr>";
}
Seeing there are a couple examples doing so in the extensions-lib should be fine, so long you only convert to 1 format.
Said that, I am digging into the "convert_inline_pass" you reported. It seems to me your first approach was correct and this could be an issue in either Asciidoctorj or Asciidoctor.
Thanks