Replies: 1 comment 1 reply
-
I see @jelovirt recently worked on this PR: jelovirt/org.lwdita#228 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using the markdown output transtype, I noticed that the language of a DITA codeblock using the outputclass="language-xxx" syntax in Oxygen is treated as any other outputclass, meaning it gets converted to a Markdown attribute list:
Most of the most common Markdown flavors just put the language name after the tick marks:
Although using attribute lists is consistent from an outputclass treatment perspective, it doesn't make for the most compatible treatment by most Markdown flavors and editors such as VS-Code and other code editors. (I asked for attribute-list support, so I realize I'm going against a prior desire for this one case.)
Would it make sense in LwDITA to special-case the conversion of outputclass for codeblocks with a language prefix in the outputclass so it's compatible with most Markdown flavors?
Our LLM ingester prefers Markdown, so it could help with the representation of code if we can pass along the language in a form most Markdown parsers would recognize. We have to downsample to Markdown for compatibility reasons.
Beta Was this translation helpful? Give feedback.
All reactions