Escape ! character next to a link #73

Closed
opened 2022-06-26 15:00:12 +02:00 by susnux · 0 comments
susnux commented 2022-06-26 15:00:12 +02:00 (Migrated from github.com)

! should be escaped if followed by a link, consider this:

Markdown: [Hello](https://example.com)
and then type a ! just before the link inside the WYSIWYG editor.

Expected result:
\![Hello](https://example.com)

Actual result:
![Hello](https://example.com)
(results in parsing as image -> invalid)

I try to visualize the problem:
Exclamation marks must be escaped before links

From: https://github.com/nextcloud/text/issues/931

`!` should be escaped if followed by a link, consider this: Markdown: `[Hello](https://example.com)` and then type a `!` just before the link inside the WYSIWYG editor. **Expected result:** `\![Hello](https://example.com)` **Actual result:** `![Hello](https://example.com)` (results in parsing as image -> invalid) I try to visualize the problem: ![Exclamation marks must be escaped before links](https://user-images.githubusercontent.com/1855448/175815321-1f0b721a-7e0e-42e6-b091-2ee4052317e4.gif) From: https://github.com/nextcloud/text/issues/931
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#73
No description provided.