ProseMirror / prosemirror-markdown

ProseMirror Markdown integration
https://prosemirror.net
MIT License
344 stars 81 forks source link

Fenced code blocks does not check for backticks #88

Closed susnux closed 2 years ago

susnux commented 2 years ago

Fenced code blocks should check the content for any sequence of backticks, as CommonMark defines a code block to end with a sequence of backticks of at least the number it started.

Meaning this is perfectly valid markdown:

code

But currently prosemirror-markdown will serialize this:

<pre><code>

code

</code></pre>

to this markdown:

code

which is a code block followed by a paragraph "code" and a second code block.