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

[Bug]/[Feature] Parser error with non-standard markdown content. Ability to suppress errors? #1396

Open
2 tasks done
PickleyD opened this issue Jun 27, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
bug Something isn't working

Comments

@PickleyD
Copy link

PickleyD commented Jun 27, 2024

Initial checklist

  • I agree to follow the code of conduct
  • I searched issues and discussions and couldn’t find anything (or linked relevant results below)

Affected packages and versions

7.4.0

Link to runnable example

No response

Steps to reproduce

Go to playground and enter - <!-- A comment --> in the raw markdown side.

Expected behavior

An error occurs but the editor remains responsive. - <!-- A comment --> appears as plain text in the markdown viewer/editor.

Actual behavior

Observe error in console of Uncaught (in promise) MilkdownError: Create prosemirror node from remark failed in parser... and editor crashing.

Is it possible for a consumer of the editor to configure it to catch/suppress errors such as this coming from the parser (and just parse the content as plain text), to avoid any full editor crashes resulting from unusual user input?

Runtime

Chrome

OS

macOS

Build and bundle tools

No response

@PickleyD PickleyD added the bug Something isn't working label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants