|
Hi dear users,
I'm using AsciidoctorJ, could you suggest how to pass parameter(s) (document-level attributes) to convert* methods for conditional evaluation blocks?
Now I'm trying to populate a map and send it through however the ifdef block is not being rendered thus I assume I'm doing that in incorrect way.
Map<String,Object> attributes = new HashMap<>();
attributes.put("paramA","paramA");
asciidoctor.convertFile("adoc file",attributes);
and adoc snippet
ifdef::paramA[]
Problem
endif::[]
ifndef::paramA[]
No Problem
endif::[]
|