marked
18.2.1 · 16 Nov 2026MIT138.2M / weekRepositoryHomepagenpmAtom feed
5.1.2 is the newest release of 5.x.
In short
2 breaking2 deprecated1 new1 fixed
- Breaking
Warnings will be logged to the console if these options are used including
headerIds,mangle, andlangPrefixwhich are on by default. These warnings can be turned off by default by using: - Breaking
Minimum supported node version v18
- Deprecated
Deprecate options
- Deprecated
Deprecate options | Option | Replacement| |---------|---------------| |
highlight,langPrefix, andcallback| marked-highlight| |mangle| marked-mangle| |baseUrl| marked-base-url| |smartypants| marked-smartypants| |xhtml| marked-xhtml| |headerIdsandheaderPrefix| marked-gfm-heading-id|
Release note
Bug Fixes
- Deprecated
Deprecate options
Update min node to v18
Features
Add block param to html renderer
Breaking changes
- Breaking
Warnings will be logged to the console if these options are used including
headerIds,mangle, andlangPrefixwhich are on by default.
These warnings can be turned off by default by using:marked.use({ mangle: false, headerIds: false, });If you need these options you can use the extensions listed below.
- Deprecated
Deprecate options
Option Replacement highlight,langPrefix, andcallbackmarked-highlight manglemarked-mangle baseUrlmarked-base-url smartypantsmarked-smartypants xhtmlmarked-xhtml headerIdsandheaderPrefixmarked-gfm-heading-id - Breaking
Minimum supported node version v18
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.