Is Markdown Validated Differently in V21?
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 106
- Joined: Wed Dec 18, 2013 3:07 am
Is Markdown Validated Differently in V21?
Hello,
I have a project which includes some markdown files.
After upgrading from V20.1 to V21, I found that Oxygen V21's markdown editor is flagging errors that it did not flag in V20.1.
To be specific, the DITA preview window flags the error. The HTML preview displays the file without error.
The first error I got was at heading level, e.g, if I have:
or
V21 ignores the heading and looks for the first heading that has a space between the hash mark and the heading. If this heading is not the expected level, I get:
After adding spaces between the hash marks and heading text, I get:
By trial and error, I isolated the cause to pipes ( | ) being used to denote a line block.
(I still have V20.1 installed, so I can confirm the behaviour.)
Anyway, is markdown validated differently in V21? (I'm assuming "Yes".)
And if so, is there anything we can tell our writers so that they know what to expect?
Cheers,
Eddie.
I have a project which includes some markdown files.
After upgrading from V20.1 to V21, I found that Oxygen V21's markdown editor is flagging errors that it did not flag in V20.1.
To be specific, the DITA preview window flags the error. The HTML preview displays the file without error.
The first error I got was at heading level, e.g, if I have:
Code: Select all
#Heading 1 Text
Code: Select all
##Heading 2 Text
(The numbers change, depending on the actual levels involved.)Header level raised from 0 to 3 without intermediate header level
After adding spaces between the hash marks and heading text, I get:
I've tried searching for specific info about this error online, but can't find anything.No renderer configured for com.vladsch.flexmark.ext.aside.AsideBlock
By trial and error, I isolated the cause to pipes ( | ) being used to denote a line block.
(I still have V20.1 installed, so I can confirm the behaviour.)
Anyway, is markdown validated differently in V21? (I'm assuming "Yes".)
And if so, is there anything we can tell our writers so that they know what to expect?
Cheers,
Eddie.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Is Markdown Validated Differently in V21?
Hi Eddie,
Oxygen 21 now comes bundled with DITA OT 3.2.1 and the publishing plugin from DITA OT which does Markdown to DITA conversions (used also by Oxygen to show the Markdown Preview and for in editor-conversions) was refactored to use the FlexMark project for parsing the Markdown files: https://github.com/vsch/flexmark-java.
About the header problem, indeed the new Markdown parser seems to require a space after the "#" but this seems correct according to the Markdown specification.
About this unhelpful error:
Regards,
Radu
Oxygen 21 now comes bundled with DITA OT 3.2.1 and the publishing plugin from DITA OT which does Markdown to DITA conversions (used also by Oxygen to show the Markdown Preview and for in editor-conversions) was refactored to use the FlexMark project for parsing the Markdown files: https://github.com/vsch/flexmark-java.
About the header problem, indeed the new Markdown parser seems to require a space after the "#" but this seems correct according to the Markdown specification.
About this unhelpful error:
this means that somehow the parser has problems interpreting a certain content, can you paste a small sample with how that content looked like?No renderer configured for com.vladsch.flexmark.ext.aside.AsideBlock
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 106
- Joined: Wed Dec 18, 2013 3:07 am
Re: Is Markdown Validated Differently in V21?
Hello Radu,
Thanks for the reply.
Regarding "No renderer configured for com.vladsch.flexmark.ext.aside.AsideBlock", the file in question has 3 lines that start with a pipe, like so:
If I remove these lines, the file is displayed in DITA Preview. The behaviour is the same if there is only one line starting with a pipe, and also if the pipe is the only character on the line. From what I can gather the pipe is represented in some markdown specs using an "aside" tag or some such.
Cheers,
Eddie.
Thanks for the reply.
Regarding "No renderer configured for com.vladsch.flexmark.ext.aside.AsideBlock", the file in question has 3 lines that start with a pipe, like so:
Code: Select all
| Line 1
| Line 2
| Line 3
Cheers,
Eddie.
-
- Posts: 9436
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Is Markdown Validated Differently in V21?
Hi Eddie,
Based on an older issue I added on the Markdown convertor project:
https://github.com/jelovirt/org.lwdita/issues/38
the convertor in DITA OT 3.3 converts those pipe lines to something like:
but at least it no longer shows that error. Oxygen 21.1 will probably come bundled with DITA OT 3.3 or newer.
Regards,
Radu
Based on an older issue I added on the Markdown convertor project:
https://github.com/jelovirt/org.lwdita/issues/38
the convertor in DITA OT 3.3 converts those pipe lines to something like:
Code: Select all
<p>| Line 1 | Line 2 | Line 3</p>
Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
- Posts: 106
- Joined: Wed Dec 18, 2013 3:07 am
Re: Is Markdown Validated Differently in V21?
Hello Radu,
Thanks for the information.
Indeed, as you said in the issue you posted, a line number for the error (or a more simply written message) would be helpful.
Anyway, it's no big deal so we'll just wait for V21.1.
Cheers,
Eddie..
Thanks for the information.
Indeed, as you said in the issue you posted, a line number for the error (or a more simply written message) would be helpful.
Anyway, it's no big deal so we'll just wait for V21.1.
Cheers,
Eddie..
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