marked
18.2.1 · 16 Nov 2026MIT138.2M / weekRepositoryHomepagenpmAtom feed
Upgrading marked From 0.8.1 to 18.2.1
171 releases in betweennotes for 170
Reading releases, release notes and advisories…
Counted from 170 of 171 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Breaking18.0.0
- Breaking18.0.0
- Breaking17.0.0
- Breaking17.0.0
- Breaking17.0.0
- Breaking17.0.0
- Breaking17.0.0
- Breaking16.0.0
- Breaking16.0.0
- Breaking16.0.0
Security
Fixes 2 advisories affecting 0.8.1
- Inefficient Regular Expression Complexity in markedhigh · GHSA-5v2h-r2cx-5xgj
- Inefficient Regular Expression Complexity in markedhigh · GHSA-rrrm-qjm4-v8hf
- 17.0.5
Fix catastrophic backtracking (ReDoS) in link/reflink label regex
- 17.0.4
Prevent ReDoS in inline link regex title group
- 4.0.10
security: fix redos vulnerabilities
Release by release
- New
Check the first character before inline tokenizer regexes
- New
- New
Skip the emphasis closer scan for inline runs without a delimiter
- Fixed
Allow tabs between the tag name and attributes of an html block
- New
- New
Add lastToken to lexer state
- Fixed
Keep hard line breaks in image alt text
- Fixed
Let emphasis open after the other delimiter character
- Fixed
Let emphasis open and close in angle brackets that are not html
- Fixed
Preserve zero from named extension renderers
- Fixed
Text after a heading or code block in a nested list item is pulled into the outer item
- New
- New
~16% faster parsing by skipping em/strong masking for runs without *, _ or ~
- Fixed
Allow a tab or end of input after a type 6 html block tag name
- Fixed
Apply emphasis flanking and rules 9-10 to the whole delimiter run
- Fixed
cli: await config functions before parsing
- New
- New
Avoid repeated raw string copies in nested lists
- Fixed
cli: honor an explicitly empty string input
- Fixed
End blockquote before a lazy line after a heading, hr or html block
- Fixed
Keep a backslash in a code span from hiding emphasis
- New
- New
Add linkParenPossible to lexer state to fail fast for link token generation
- Fixed
Avoid cubic backtracking on unicode whitespace in a link destination
- Fixed
Load CLI configs with top-level await
- Fixed
Reject unbalanced parentheses in link destinations
- New
- Fixed
Allow indented lines in setext heading text
- Fixed
Decode numeric character references in text
- Fixed
- Fixed
Preserve internal tabs in list item content
- Fixed
Strip whitespace when normalizing link reference labels
- Fixed
Support GFM protocol autolinks
- Fixed
- Fixed
Allow tabs in the thematic break that ends a list item
- Fixed
Avoid O(n^2) scanning in reflinkSearch
- Fixed
Case fold reference link labels
- Fixed
Drop the leading whitespace after a hard line break
- Fixed
Match html block start conditions when ending a list item
- Fixed
Respect raw tokens when closing link labels
- Fixed
Strip a tab that follows spaces in an indented code block
- Fixed
1 other line we could not sort, mostly version bumps
- 9.0.0
https://cdn.jsdelivr.net/npm/marked/marked.min.js
14 internal lines (docs, tests, tooling) left out.
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.