marked
18.2.1 · 16 Nov 2026MIT138.2M / weekRepositoryHomepagenpmAtom feed
2.1.3 is the newest release of 2.x.
In short
3 breaking2 fixed
- Breaking
emandstrongtokenizers have been merged into oneemStrongtokenizer. - Breaking
codeandtexttokenizers do not get passed all tokens as a second parameter. - Breaking
No longer supporting IE 11. IE 11 may still work but we are not committed to making sure it works with every update. We still provide an es5 version in
lib/marked.jsbut some pollyfills may be needed for IE 11 in the future.
Security
Fixes 1 advisory that affected 1.2.9
- ModerateRegular Expression Denial of Service (REDoS) in MarkedGHSA-4r62-v4vq-hr96 · 8 Feb 2021Fixed in 2.0.0
2 advisories affect 2.0.0; 4.0.10 fixes them
- HighInefficient Regular Expression Complexity in markedGHSA-5v2h-r2cx-5xgj · 14 Jan 2022Fixed in 4.0.10
- HighInefficient Regular Expression Complexity in markedGHSA-rrrm-qjm4-v8hf · 14 Jan 2022Fixed in 4.0.10
Release note
Bug Fixes
Join adjacent inlineText tokens
Total rework of Emphasis/Strong
Breaking changes
- Breaking
emandstrongtokenizers have been merged into oneemStrongtokenizer. - Breaking
codeandtexttokenizers do not get passed all tokens as a second parameter. - Breaking
No longer supporting IE 11. IE 11 may still work but we are not committed to making sure it works with every update. We still provide an es5 version in
lib/marked.jsbut some pollyfills may be needed for IE 11 in the future.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.