Page 1 of 1

Customize conversion of Markdown to DITA

Posted: Tue Apr 22, 2025 12:07 pm
by prosune
Hi,
I am not sure if the category I selected is the right one for this issue. I am using the Markdown to DITA conversion process in Oxygen XML Editor. While converting, the converter is assigned some DITA tags to specific markdown elements, which we would like to customize. Say for example, the converter might assign <codeph> tag for a specific situation, which we would like it to assign <codeblock>. Is there a mapping file where we can define this change?

Re: Customize conversion of Markdown to DITA

Posted: Wed Apr 23, 2025 7:59 am
by Radu
Hi,
How exactly do you convert Markdown to DITA using Oxygen? Are you using our free batch documents converter addon?
https://www.oxygenxml.com/doc/ug-addons ... addon.html
As far as I know we do not have any setting to control the elements generated in the conversion, maybe you could try to create a custom XML refactoring operation using XSLT which when applied on the output DITA XML content could modify the structure to better fit your purpose.
https://www.oxygenxml.com/doc/versions/ ... tools.html
and some XML refactor examples:
https://github.com/oxygenxml/dita-refactoring-examples/
Regards,
Radu