Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serializer does not escape '>' at start of line #56

Closed
roennibus opened this issue Sep 3, 2021 · 1 comment
Closed

Serializer does not escape '>' at start of line #56

roennibus opened this issue Sep 3, 2021 · 1 comment

Comments

@roennibus
Copy link

Details

Markdown serializer currently does not escape a greater-than character > occurring at start of line.

Version

prosemirror-markdown 1.5.1
Can be reproduced with markdown example.

Steps to reprocude

  1. Insert line starting with > in WYSIWYM mode.
  2. Switch mode to markdown.
  3. > character is not escaped.
  4. Switch back to WYSIWYM.
  5. Line is now unintentionally quoted.

image
image
image

Expected result:

> character at start of line is escaped as \> during markdown serialization.

@marijnh marijnh closed this as completed in f44936d Sep 3, 2021
@marijnh
Copy link
Member

marijnh commented Sep 3, 2021

Attached patch should help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants