ProseMirror / prosemirror-markdown

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

Check content of code blocks for any sequence of backticks #89

Closed susnux closed 2 years ago

susnux commented 2 years ago

CommonMark allows a sequence of backticks within a code block, but the fence has to be at least one backtick longer than the sequence within. See the linked issue for a detailed explanation.

marijnh commented 2 years ago

We're still targeting browsers that don't have String.repeat. But it seems you can easily avoid using that by appending an extra backtick to the matched string itself.

susnux commented 2 years ago

We're still targeting browsers that don't have String.repeat. But it seems you can easily avoid using that by appending an extra backtick to the matched string itself.

Ok rewrote it without String.repeat.

marijnh commented 2 years ago

Thanks!