markdown-it
15.0.3 · 16 Oct 2026MIT41.9M / weekRepositoryHomepagenpmAtom feed
5.1.0 is the newest release of 5.x.
In short
2 fixed4 changed
Security
5 advisories affect 5.0.0; 14.3.3 fixes them
- Highmarkdown-it: Quadratic complexity in smartquotes with unmatched closing quotesGHSA-r7fv-28h4-cvq7 · 20 Oct 2026Fixed in 14.3.2
- Moderatemarkdown-it linkify: true has two quadratic paths, so a few hundred KB of markdown blocks the event loop for tens of secondsGHSA-253c-mchw-3w2r · 29 Sep 2026Fixed in 14.3.1
- Moderatemarkdown-it: Quadratic complexity DoS in smartquotes rule via replaceAt string operationsGHSA-6v5v-wf23-fmfq · 15 Jun 2026Fixed in 14.2.0
- ModerateUncontrolled Resource Consumption in markdown-itGHSA-6vfc-qv3f-vr6c · 12 Jan 2022Fixed in 12.3.2
- Lowmarkdown-it: Quadratic-time denial of service in inline HTML parsing with html enabledGHSA-vfgh-jcmw-g37q · 20 Oct 2026Fixed in 14.3.3
Release note
Changed
Internal API change. Due to new CM spec requirements, we had to update
internals. That should not touch ordinary users, but can affect some external
plugins. If you are plugin developper - see migration guide:
github.com/markdown-it/markdown-it/blob/master/….Updated CM spec compatibility to 0.22 (see list below).
Keep tabs (don't replace with spaces).
Don't wrap iframes with paragraphs.
Rewritten emphasis algorithm.
Fixed
Fix closure compiler collisions (don't use reserved words), #159.
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.