AsciidoctorJ InlineMacroProcessor bibref
Posted by
Mamamio on
Jan 30, 2021; 7:14pm
URL: https://discuss.asciidoctor.org/AsciidoctorJ-InlineMacroProcessor-bibref-tp8476.html
Hi!
I am trying to create a
:bibref link in a InlineMacroProcessor to create a
<<pp>> reference. I do the following:
public Object process(ContentNode parent, String target, Map<String, Object> attributes)
{
Map<String, Object> options = new HashMap<String, Object>();
options.put("type", ":bibref");
options.put("target", "#" + target);
return createPhraseNode(parent, "anchor", target, attributes, options);
}
I also tried
:link and
:ref without luck.
:link works in HTML but not in PDF.
Thanks for any help!