ISSUE: Markdown output comes out as a single line
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 26
- Joined: Tue Aug 27, 2019 10:55 pm
ISSUE: Markdown output comes out as a single line
Starting from a DITA book, I have tried both the regular Markdown and the GitHub-flavored Markdown Transformations, and both produce the output as a single line, which renders all the output as if it was a *very* long title.
All the interior markup appears to be correct, there are just not the CRs to break the lines.
I'm sure it's just a setting I'm missing. The map is: <bookmap chunk='to-content'>

All the interior markup appears to be correct, there are just not the CRs to break the lines.
I'm sure it's just a setting I'm missing. The map is: <bookmap chunk='to-content'>
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ISSUE: Markdown output comes out as a single line
Hi,
What version of Oxygen are you using and what DITA OT? Is it the DITA OT bundled with Oxygen or an external DITA OT installation?
I tried setting chunk=to-content on this sample bookmap we have OXYGEN_INSTALL_DIR/samples/dita/it-book/taskbook.ditamap, generated Markdown content and the markdown content was not generated on a single line, I opened the result in Oxygen and it seems to be proper Markdown content.
Regards,
Radu
What version of Oxygen are you using and what DITA OT? Is it the DITA OT bundled with Oxygen or an external DITA OT installation?
I tried setting chunk=to-content on this sample bookmap we have OXYGEN_INSTALL_DIR/samples/dita/it-book/taskbook.ditamap, generated Markdown content and the markdown content was not generated on a single line, I opened the result in Oxygen and it seems to be proper Markdown content.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 26
- Joined: Tue Aug 27, 2019 10:55 pm
Re: ISSUE: Markdown output comes out as a single line
Hi Radu
<oXygen/> XML Editor 22.0, build 2020021016
DITA-OT ver 3.x as bundled
===========
Discovered if I rename the file to "abc123.MD", the file is handled correctly. "abc123.HTML" (what gets produced by the transform), comes in as an single line.
Is there a way to change the default extention applied as part of the transform?
Regards
Grant
<oXygen/> XML Editor 22.0, build 2020021016
DITA-OT ver 3.x as bundled
===========
Discovered if I rename the file to "abc123.MD", the file is handled correctly. "abc123.HTML" (what gets produced by the transform), comes in as an single line.
Is there a way to change the default extention applied as part of the transform?
Regards
Grant
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ISSUE: Markdown output comes out as a single line
Hi Grant,
There is a registered issue I added to the DITA to MD publishing plugin to set the default output extension as "md":
https://github.com/jelovirt/org.lwdita/issues/65
but as it says on the issue you can edit the transformation scenario and in the "Parameters" tab set the "out.ext" parameter to ".md".
Regards,
Radu
There is a registered issue I added to the DITA to MD publishing plugin to set the default output extension as "md":
https://github.com/jelovirt/org.lwdita/issues/65
but as it says on the issue you can edit the transformation scenario and in the "Parameters" tab set the "out.ext" parameter to ".md".
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 26
- Joined: Tue Aug 27, 2019 10:55 pm
Re: ISSUE: Markdown output comes out as a single line
Thanks!
I'm confused though.
Per your bug [https://github.com/jelovirt/org.lwdita/issues/65]
I tried adding "out.ext" with a value of "md" (no quotes) to the transform, but it doesn't seem to have taken.
Am I editing the wrong place/file?
In ignorance and appreciation,
Grant
I'm confused though.
Per your bug [https://github.com/jelovirt/org.lwdita/issues/65]
I tried adding "out.ext" with a value of "md" (no quotes) to the transform, but it doesn't seem to have taken.
Am I editing the wrong place/file?
In ignorance and appreciation,
Grant
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ISSUE: Markdown output comes out as a single line
Hi Grant,
Where exactly did you add this parameter? Also try to set its value to ".md" without the quotes but with that extra dot.
Regards,
Radu
Where exactly did you add this parameter? Also try to set its value to ".md" without the quotes but with that extra dot.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 26
- Joined: Tue Aug 27, 2019 10:55 pm
Re: ISSUE: Markdown output comes out as a single line
Hi Radu.
I added as a parameter to my version of the markdown transformation scenario.
I had not used quotes, but also did not use the period; FWIW, adding the period made no difference in the output. <smile>
Grant
I added
Code: Select all
.md
I had not used quotes, but also did not use the period; FWIW, adding the period made no difference in the output. <smile>
Grant
-
- Posts: 26
- Joined: Tue Aug 27, 2019 10:55 pm
RESOLVED: Markdown output comes out as a single line
Hi Radu.
I discovered that I also needed to set the value for the transformation to markdown to get the correct output format.
Grant
I discovered that I also needed to set the
Code: Select all
transtype
Grant
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ISSUE: Markdown output comes out as a single line
Hi Grant,
If in the Configure Transformation Scenarios dialog you press the New button and choose "DITA OT" transformation, the dialog which shows allows you to choose Markdown or Github-flavored Markdown transformation types. After this the scenario should already have information about the transtype without you needing to manually set a value for it in the Parameters list. So I'm not sure why this last step was necessary for you.
Regards,
Radu
If in the Configure Transformation Scenarios dialog you press the New button and choose "DITA OT" transformation, the dialog which shows allows you to choose Markdown or Github-flavored Markdown transformation types. After this the scenario should already have information about the transtype without you needing to manually set a value for it in the Parameters list. So I'm not sure why this last step was necessary for you.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: ISSUE: Markdown output comes out as a single line
Hi,
Per my reply above, open the DITA Map in the DITA Maps Manager view and click the "Configure Transformation Scenarios" toolbar button.
If in the Configure Transformation Scenarios dialog you press the New button and choose "DITA OT" transformation, the dialog which shows allows you to choose Markdown or Github-flavored Markdown transformation types.
If you do not have that option on your side you are either using a custom DITA OT publishing engine (Preferences->DITA page) or you are using a very old Oxygen installation.
Regards,
Radu
Per my reply above, open the DITA Map in the DITA Maps Manager view and click the "Configure Transformation Scenarios" toolbar button.
If in the Configure Transformation Scenarios dialog you press the New button and choose "DITA OT" transformation, the dialog which shows allows you to choose Markdown or Github-flavored Markdown transformation types.
If you do not have that option on your side you are either using a custom DITA OT publishing engine (Preferences->DITA page) or you are using a very old Oxygen installation.
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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