) in URL is not escaped #78

Closed
opened 2022-07-10 00:28:52 +02:00 by susnux · 0 comments
susnux commented 2022-07-10 00:28:52 +02:00 (Migrated from github.com)

From commonmark spec example 499:

This markdown:

[link](foo\)\:)

Results in this HTML:

<p><a href="foo):">link</a></p>

But it is then serialized to this invalid (different) markdown:

[link](foo):)

Note the not escaped ) character

link not escaped

From commonmark spec [example 499](https://spec.commonmark.org/0.30/#example-499): This markdown: ```markdown [link](foo\)\:) ``` Results in this HTML: ```html <p><a href="foo):">link</a></p> ``` But it is then serialized to this invalid (different) markdown: ```markdown [link](foo):) ``` Note the not escaped `)` character ![link not escaped](https://user-images.githubusercontent.com/1855448/178124564-cd6bbece-ff3e-4ab5-9b1d-0d15f6362748.gif)
Sign in to join this conversation.
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#78
No description provided.