Replies: 1 comment
-
I like it better with the space. Both are valid, and the space is harmless. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When trying to use pandoc as a Markdown formatter, it will insert a space between class part of info-string:
pandoc/src/Text/Pandoc/Writers/Markdown.hs
Line 593 in 0f79a1f
This is pretty uncommon in real life Markdown documents in my experience. The CommonMark spec itself has a first example of fenced code block with a language tag without space.
Taking GitHub code search results as a proxy for popularity, we see the spaceless version is 18× more common:
In pandoc codebase, they are roughly equally represented outside of tests:
I propose removing the space from the Markdown writer.
I can open a PR if this is desired.
Beta Was this translation helpful? Give feedback.
All reactions