Conditionalizing Markdown

Post here questions and problems related to editing and publishing DITA content.
kirkilj
Posts: 110
Joined: Fri May 14, 2010 12:14 am

Conditionalizing Markdown

Post 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?
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Conditionalizing Markdown

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply