-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
- Extension Name: marked-directive
- Extension Version: 1.0.7
- Project Version: ?
- Device: [e.g Desktop] Desktop
- OS@version (or Browser): Windows 11
- Node And NPM Version: 22.14.0 and 11.6.4
Description
Marked throws an error and crashes if you use an HTML entity (like " for example) in an attribute of a directive.
To Reproduce (
codepen - you will need to open your browser's console to see the error message.
Expected Behavior
HTML entities are allowed as text.
Actual Behavior
Uncaught Error: invalid syntax at line 1 col 10:
1 dataProp="Something © 2007."
^
Please report this to https://github.com/markedjs/marked.
at p._token (moo.js:559:17)
at p.next (moo.js:506:19)
at A.next (moo.js:576:30)
at Z (index.js:201:34)
at Object.value (index.js:222:19)
at p._token (moo.js:538:56)
at p.next (moo.js:520:17)
at A.next (moo.js:576:30)
at Object.C (index.js:233:34)
at Object.tokenizer (index.js:320:24)
Metadata
Metadata
Assignees
Labels
No labels