Page 1 of 1

Conditionalizing Markdown

Posted: Tue Oct 27, 2020 1:42 am
by kirkilj
We know we can conditionalize Markdown in a DITA map by specifying a filtering attribute on the md topicref, but is there a way to conditionalize content within a markdown file so that @audience="internal", for example, winds up in the corresponding DITA element? Is there a way to pass through the equivalent of a processing instruction that could be placed around internal content within a Markdown file? I didn't see anything in the GFM Spec that resembled such a feature. If there is, then could an extension point to the LwDITA plugin convert this "processing instruction" into a conditional attribute that works just fine with DITA-OT and Oxygen's profiling support?

Re: Conditionalizing Markdown

Posted: Tue Oct 27, 2020 10:59 am
by Radu
Hi John,

I do not see any support for this in the Markdown to DITA conversion plugin:

https://github.com/jelovirt/org.lwdita/ ... -reference

Maybe you can add an issue there with your use case.

Regards,
Radu