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

Merged
susnux merged 1 commit from fix/code_block into master 2022-10-28 13:30:03 +02:00
susnux commented 2022-10-27 21:40:39 +02:00 (Migrated from github.com)
  • Resolves: #88

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.

* Resolves: #88 --- 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 2022-10-28 09:15:04 +02:00 (Migrated from github.com)

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.

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 2022-10-28 11:16:50 +02:00 (Migrated from github.com)

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.

> 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 2022-10-28 13:30:18 +02:00 (Migrated from github.com)

Thanks!

Thanks!
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
prosemirror/prosemirror-markdown!89
No description provided.