marked
18.2.1 · 16 Nov 2026MIT138.2M / weekRepositoryHomepagenpmAtom feed
0.8.2 is the newest release of 0.6.x.
In short
2 breaking1 new10 fixed2 changed4 internal
- Breaking
Drop support for Node v0.10 and old browsers such as Internet Explorer
- Breaking
Add parameter
sluggertoRenderer.prototype.headingmethod #1401
Security
4 advisories affect 0.6.0; 4.0.10 fixes the others
- 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
- ModerateMarked ReDoS due to email addresses being evaluated in quadratic timeGHSA-xf5p-87ch-gxw2 · 5 Jun 2019Fixed in 0.6.2
- LowRegular Expression Denial of Service in markedGHSA-ch52-vgq2-943f · 3 Sep 2020No fix yet
Release note
Breaking Changes
- Breaking
Drop support for Node v0.10 and old browsers such as Internet Explorer
You should not have any problems if using Node 4+ or a modern browser
- Breaking
Add parameter
sluggertoRenderer.prototype.headingmethod #1401You should not have any problems if you do not override this method
New Features
Add new export
marked.Slugger#1401
Fixes
Fix emphasis followed by a punctuation #1383
Fix bold around autolink email address #1385
Make autolinks case insensitive #1384
Make code fences compliant with Commonmark spec #1387
Make blockquote paragraph continuation compliant with Commonmark spec #1394
Make ordered list marker length compliant with Commonmark spec #1391
Make empty list items compliant with Commonmark spec #1395
Make tag escaping compliant with Commonmark spec #1397
Make strong/bold compliant with Commonmark spec #1400
Fix handling of adjacent lists #684
Add better error handling when token type cannot be found #1005
Fix duplicate heading id and non-latin characters #1401
CLI
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.