You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems pandoc's markdown_github reader is not able to parse the code block correctly due to presence of - inside the codeblock. If - is removed inside the code block, it is converted correctly.
Pandoc version : 1.19.2
The text was updated successfully, but these errors were encountered:
Like regular code blocks, fenced code blocks must be separated
from surrounding text by blank lines.
However, pandoc's markdown doesn't obey this consistently:
% pandoc
a
```
b
```
^D
<p>a</p>
<pre><code>b</code></pre>
And of course, github allows the fences without blank space.
Note: GitHub is now using commonmark, so you could try pandoc -f commonmark. This gives you basic commonmark without the GitHub extensions (e.g. tables), but it might work better in your case.
See #3509 for the best way forward for accurate parsing of markdown_github. However, as the above shows, there are issues here too for pandoc's markdown.
jgm
changed the title
Incorrect parsing of markdown_github
Markdown parsing confusion with code block after list
Aug 18, 2017
converting the following as
markdown_github
tohtml
gives
while github renders it correctly.
It seems pandoc's
markdown_github
reader is not able to parse the code block correctly due to presence of-
inside the codeblock. If-
is removed inside the code block, it is converted correctly.Pandoc version : 1.19.2
The text was updated successfully, but these errors were encountered: