AsciidoctorJ InlineMacroProcessor bibref

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

AsciidoctorJ InlineMacroProcessor bibref

Mamamio
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!