MD -> DITA: Escaped '[]' not ignored
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 10
- Joined: Tue Aug 27, 2019 3:52 pm
MD -> DITA: Escaped '[]' not ignored
Post by deepbluesea70 »
Hi there,
I use XML Author 21.1 to convert markdown to DITA (File -> Open -> [Open MD File]).
Works well, but I came across a problem with brackets '[]'. We usually use them to indicate that readers need to put in there specific value in a path. To avoid that these are interpreted as link or reference in markdown, I escaped them, like in the following example:
Conversion result:
In my opinion, the slashes in '\[YOUR-CLUSTER\] should be omitted in the conversion result. I also tried using just one escaping backslash (for the first bracket), but then that one is part of the conversion result.
If I leave them both out, the conversion parses a markdown link (which I don't want either):
Is there any way to get around this? A special escape character I may not know? Or is this a bug?
Thank you,
Jens
I use XML Author 21.1 to convert markdown to DITA (File -> Open -> [Open MD File]).
Works well, but I came across a problem with brackets '[]'. We usually use them to indicate that readers need to put in there specific value in a path. To avoid that these are interpreted as link or reference in markdown, I escaped them, like in the following example:
Code: Select all
Choose *CLUSTERS* > *\[YOUR-CLUSTER\]* > *OVERVIEW* > *Lifecycle* > *Maintenance*.
Code: Select all
Choose
<i>CLUSTERS</i> > <i>\[YOUR-CLUSTER\]</i> > <i>OVERVIEW</i> > <i>Lifecycle</i> > <i>Maintenance</i>.
If I leave them both out, the conversion parses a markdown link (which I don't want either):
Code: Select all
Choose
<i>CLUSTERS</i> > <i><xref keyref="YOUR-CLUSTER"/></i> > <i>OVERVIEW</i> > <i>Lifecycle</i> > <i>Maintenance</i>
Thank you,
Jens
-
- Posts: 1016
- Joined: Wed Nov 16, 2005 11:11 am
Re: MD -> DITA: Escaped '[]' not ignored
Post by alex_jitianu »
Hello,,
Oxygen version 21.1 comes bundled with DITA-OT 3.3.1 and relies on it for MD conversions. The issue you encountered has been resolved in DITA-OT 3.4: https://github.com/dita-ot/dita-ot/issues/3267
Oxygen 22, for example, comes bundled with DITA-OT 3.4 and doesn't have this issue anymore. As an workaround, you can set up Oxygen to use a newer DITA-OT: https://www.oxygenxml.com/doc/versions/ ... ta-ot.html
Best regards,
Alex
Oxygen version 21.1 comes bundled with DITA-OT 3.3.1 and relies on it for MD conversions. The issue you encountered has been resolved in DITA-OT 3.4: https://github.com/dita-ot/dita-ot/issues/3267
Oxygen 22, for example, comes bundled with DITA-OT 3.4 and doesn't have this issue anymore. As an workaround, you can set up Oxygen to use a newer DITA-OT: https://www.oxygenxml.com/doc/versions/ ... ta-ot.html
Best regards,
Alex
-
- Posts: 10
- Joined: Tue Aug 27, 2019 3:52 pm
Re: MD -> DITA: Escaped '[]' not ignored
Post by deepbluesea70 »
Thank you Alex, I downloaded XML Author 22.1 and now it works!
Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service