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

strikethrough-like plaintext can cause parser crash #742

Closed
ChristianMurphy opened this issue Dec 13, 2020 · 1 comment
Closed

strikethrough-like plaintext can cause parser crash #742

ChristianMurphy opened this issue Dec 13, 2020 · 1 comment

Comments

@ChristianMurphy
Copy link

ChristianMurphy commented Dec 13, 2020

Some strikethrough-like plain text, for example:

-~~~~;~~~~~~

can cause a crash when parsed with markdown-it 12.0.3 using the default settings

require("markdown-it")("default").render("-~~~~;~~~~~~")

exception

markdown-it/lib/rules_inline/balance_pairs.js:37
      if (opener.marker !== closer.marker) continue;
                 ^

TypeError: Cannot read property 'marker' of undefined
@rlidwka
Copy link
Member

rlidwka commented Dec 14, 2020

Fixed, thanks for reporting.

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