Customize conversion of Markdown to DITA

Post here questions and problems related to oXygen frameworks/document types.
prosune
Posts: 1
Joined: Tue Apr 22, 2025 11:56 am

Customize conversion of Markdown to DITA

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

Re: Customize conversion of Markdown to DITA

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