marked breaking changes
Updated December 4, 2026
On this page
Latest version 18.4.0, released November 30, 2026. Source repository
Its 10.0.0 release drops Node.js 16. Node.js end of life dates.
- From 17.0.6 to 18.4.0: 50 breaking changes in 12 versions.
- From 4.1.0 to 18.4.0: 804 breaking changes in 45 versions.
marked 18.4.0 breaking changes
- Signature changed
Hooks.provideLexer
Was provideLexer(block?: boolean | undefined): typeof _Lexer.lexInline; now provideLexer(block?: boolean | undefined): (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => Token[]. npmjs.com - Signature changed
Hooks.provideParser
Was provideParser(block?: boolean | undefined): (tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => ParserOutput; now provideParser(block?: boolean | undefined): (tokens: Token[], options?... npmjs.com - Signature changed
HooksApi.provideLexer
Was provideLexer(block?: boolean | undefined): typeof _Lexer.lexInline; now provideLexer(block?: boolean | undefined): (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => Token[]. npmjs.com - Signature changed
HooksApi.provideParser
Was provideParser(block?: boolean | undefined): (tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => ParserOutput; now provideParser(block?: boolean | undefined): (tokens: Token[], options?... npmjs.com - Signature changed
HooksObject.provideLexer
Was provideLexer(block?: boolean | undefined): typeof _Lexer.lexInline; now provideLexer(block?: boolean | undefined): (src: string, options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => Token[]. npmjs.com - Signature changed
HooksObject.provideParser
Was provideParser(block?: boolean | undefined): (tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => ParserOutput; now provideParser(block?: boolean | undefined): (tokens: Token[], options?... npmjs.com - Signature changed
marked
Was function marked(src: string, options: MarkedOptions & {async: false;}): string function marked(src: string, options: MarkedOptions & {async: true;}): Promise<string> function marked(src: string, options?: MarkedOptions | null): string... npmjs.com - Signature changed
Marked.Lexer
Was Lexer: typeof _Lexer; now Lexer: {new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Lexer<ParserOutput, RendererOutput>; get rules(): {block: {normal: {blockquote: RegExp; code: RegExp; def: RegExp; fences... npmjs.com - Signature changed
marked.parseInline
Was let parseInline: typeof markedInstance.parseInline; now let parseInline: typeof parseInlineMarkdown. npmjs.com - Signature changed
Marked.parser
Was parser(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput; now parser(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): NoInfer<ParserOutput>. npmjs.com - Signature changed
Marked.Parser
Was Parser: {new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Parser<ParserOutput, RendererOutput>; parse<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1... npmjs.com - Signature changed
Marked.Parser.parse
Was parse<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1, RendererOutput_1>): ParserOutput_1; now parse<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[]... npmjs.com - Signature changed
Marked.Parser.parseInline
Was parseInline<ParserOutput_1 = string, RendererOutput_1 = string>(tokens: Token[], options?: MarkedOptions<ParserOutput_1, RendererOutput_1>): ParserOutput_1; now parseInline<ParserOutput_1 = string, RendererOutput_1 = string>(tokens... npmjs.com - Signature changed
MarkedOptions.extensions
Was extensions?: null | {renderers: {[name: string]: RendererExtensionFunction<ParserOutput, RendererOutput>;}; childTokens: {[name: string]: string[];}; inline?: TokenizerExtensionFunction[]; block?: TokenizerExtensionFunction[]... npmjs.com - Signature changed
MarkedOptions.extensions.block
Was block?: TokenizerExtensionFunction[]; now block?: TokenizerExtensionFunction<ParserOutput, RendererOutput>[]. npmjs.com - Signature changed
MarkedOptions.extensions.inline
Was inline?: TokenizerExtensionFunction[]; now inline?: TokenizerExtensionFunction<ParserOutput, RendererOutput>[]. npmjs.com - Signature changed
MarkedOptions.extensions.startBlock
Was startBlock?: TokenizerStartFunction[]; now startBlock?: TokenizerStartFunction<ParserOutput, RendererOutput>[]. npmjs.com - Signature changed
MarkedOptions.extensions.startInline
Was startInline?: TokenizerStartFunction[]; now startInline?: TokenizerStartFunction<ParserOutput, RendererOutput>[]. npmjs.com - Signature changed
parseInline
Was const parseInline: {(src: string, options: MarkedOptions<string, string> & {async: true;}): Promise<string>; (src: string, options: MarkedOptions<string, string> & {async: false;}): string; (src: string, options?: MarkedOptions<string... npmjs.com - Signature changed
Parser.parse
Was static parse<ParserOutput = string, RendererOutput = string>(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput; now static parse<ParserOutput = string, RendererOutput = string>(tokens: Token[]... npmjs.com - Signature changed
Parser.parseInline
Was static parseInline<ParserOutput = string, RendererOutput = string>(tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput>): ParserOutput; now static parseInline<ParserOutput = string, RendererOutput = string>(tokens... npmjs.com - Signature changed
TokenizerAndRendererExtension
Was type TokenizerAndRendererExtension<ParserOutput = string, RendererOutput = string> = TokenizerExtension | RendererExtension<ParserOutput, RendererOutput> | (TokenizerExtension & RendererExtension<ParserOutput, RendererOutput>); now... npmjs.com - Signature changed
TokenizerExtension
Was interface TokenizerExtension; now interface TokenizerExtension<ParserOutput = string, RendererOutput = string>. npmjs.com - Signature changed
TokenizerExtension.start
Was start?: TokenizerStartFunction; now start?: TokenizerStartFunction<ParserOutput, RendererOutput>. npmjs.com - Signature changed
TokenizerExtension.tokenizer
Was tokenizer: TokenizerExtensionFunction; now tokenizer: TokenizerExtensionFunction<ParserOutput, RendererOutput>. npmjs.com - Signature changed
TokenizerExtensionFunction
Was type TokenizerExtensionFunction = (this: TokenizerThis, src: string, tokens: Token[] | TokensList) => Tokens.Generic | undefined; now type TokenizerExtensionFunction<ParserOutput = string, RendererOutput = string> = (this... npmjs.com - Signature changed
TokenizerStartFunction
Was type TokenizerStartFunction = (this: TokenizerThis, src: string) => number | void; now type TokenizerStartFunction<ParserOutput = string, RendererOutput = string> = (this: TokenizerThis<ParserOutput, RendererOutput>, src: string) =>... npmjs.com - Signature changed
TokenizerThis
Was interface TokenizerThis; now interface TokenizerThis<ParserOutput = string, RendererOutput = string>. npmjs.com - Signature changed
TokenizerThis.lexer
Was lexer: _Lexer; now lexer: _Lexer<ParserOutput, RendererOutput>. npmjs.com
marked 18.3.0 breaking changes
- Signature changed
Lexer.state
Was state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; linkParenPossible: boolean; top: boolean; lastToken?: Token;}; now state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; linkParenPossible: boolean; top... npmjs.com
marked 18.2.1 breaking changes
- Signature changed
MarkedExtension.tokenizer
Was tokenizer?: TokenizerObject | null; now tokenizer?: TokenizerObject<ParserOutput, RendererOutput> | null. npmjs.com
marked 18.2.0 breaking changes
- Signature changed
Lexer.state
Was state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; linkParenPossible: boolean; top: boolean;}; now state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; linkParenPossible: boolean; top: boolean... npmjs.com
marked 18.1.3 breaking changes
- Signature changed
MarkedExtension.walkTokens
Was walkTokens?: ((token: Token) => void | Promise<void>) | null; now walkTokens?: ((token: Token) => void | Promise<void> | (void | Promise<void>)[]) | null. npmjs.com
marked 18.1.2 breaking changes
- Signature changed
TextRenderer.del
Was del({text}: Tokens.Del): RendererOutput; now del({text, tokens}: Tokens.Del): RendererOutput. npmjs.com - Signature changed
TextRenderer.em
Was em({text}: Tokens.Em): RendererOutput; now em({text, tokens}: Tokens.Em): RendererOutput. npmjs.com - Signature changed
TextRenderer.image
Was image({text}: Tokens.Image): RendererOutput; now image({text, tokens}: Tokens.Image): RendererOutput. npmjs.com - Signature changed
TextRenderer.link
Was link({text}: Tokens.Link): RendererOutput; now link({text, tokens}: Tokens.Link): RendererOutput. npmjs.com - Signature changed
TextRenderer.strong
Was strong({text}: Tokens.Strong): RendererOutput; now strong({text, tokens}: Tokens.Strong): RendererOutput. npmjs.com
Older versions
40 older versions, each with its first changes. Sign up to see every change
Show 40 older versions
marked 18.1.1 breaking changes
- Signature changed
Lexer.rules
Was readonly static rules: {block: {normal: {blockquote: RegExp; code: RegExp; def: RegExp; fences: RegExp; heading: RegExp; hr: RegExp; html: RegExp; lheading: RegExp; list: RegExp; newline: RegExp; paragraph: RegExp; table: RegExp; text... npmjs.com
marked 18.1.0 breaking changes
- Behavior changed
Link destinations containing unbalanced parentheses are no longer parsed as links, so their output changes. Check any content that relies on the old link parsing. github.com - Signature changed
Lexer.state
Was state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; top: boolean;}; now state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; linkParenPossible: boolean; top: boolean;}. npmjs.com
marked 18.0.12 breaking changes
- Signature changed
Renderer.link
Was link({href, title, tokens}: Tokens.Link): RendererOutput; now link({href, title, text, tokens, autolink}: Tokens.Link): RendererOutput. npmjs.com - Signature changed
RendererApi.link
Was link({href, title, tokens}: Tokens.Link): RendererOutput; now link({href, title, text, tokens, autolink}: Tokens.Link): RendererOutput. npmjs.com
And 1 more in this version.
marked 18.0.11 breaking changes
- Signature changed
Lexer.state
Was state: {inLink: boolean; inRawBlock: boolean; top: boolean;}; now state: {inLink: boolean; inRawBlock: boolean; linkEmitted: boolean; top: boolean;}. npmjs.com
marked 18.0.9 breaking changes
- Signature changed
marked.parseInline
Was var parseInline: {(src: string, options: MarkedOptions<string, string> & {async: true;}): Promise<string>; (src: string, options: MarkedOptions<string, string> & {async: false;}): string; (src: string, options?: MarkedOptions<string... npmjs.com - Signature changed
marked.use
Was var use: (...args: MarkedExtension[]) => typeof marked; now let use: (...args: MarkedExtension[]) => typeof marked. npmjs.com
And 1 more in this version.
marked 18.0.0 breaking changes
- Behavior changed
The package now uses TypeScript 6, so projects that depend on its types may need to upgrade TypeScript to match. github.com - Behavior changed
Block tokens are trimmed of trailing blank lines, so code that relied on those newlines in token text must be updated. github.com
marked 17.0.6 breaking changes
- Signature changed
Hooks.provideLexer
Was provideLexer(): typeof _Lexer.lexInline; now provideLexer(block?: boolean | undefined): typeof _Lexer.lexInline. npmjs.com - Signature changed
Hooks.provideParser
Was provideParser(): (tokens: Token[], options?: MarkedOptions<ParserOutput, RendererOutput> | undefined) => ParserOutput; now provideParser(block?: boolean | undefined): (tokens: Token[], options?: MarkedOptions<ParserOutput... npmjs.com
And 4 more in this version.
marked 17.0.4 breaking changes
- Removed
Rules.other.unescapeTest
Rules.other.unescapeTest was removed in marked 17.0.4 npmjs.com
marked 17.0.2 breaking changes
- Removed
Rules.other.listReplaceTabs
Rules.other.listReplaceTabs was removed in marked 17.0.2 npmjs.com - Signature changed
Lexer.rules
Was readonly static rules: {block: {normal: {blockquote: RegExp; code: RegExp; def: RegExp; fences: RegExp; heading: RegExp; hr: RegExp; html: RegExp; lheading: RegExp; list: RegExp; newline: RegExp; paragraph: RegExp; table: RegExp; text... npmjs.com
And 3 more in this version.
marked 17.0.0 breaking changes
- Behavior changed
Text tokens that follow each other inside lists are produced differently. Check any code that reads list token output. github.com - Behavior changed
The listItem renderer has been simplified, so custom listItem renderers may need to be updated to the new shape. github.com
And 5 more in this version.
marked 16.4.0 breaking changes
- Behavior changed
Text starting with an uppercase WWW no longer starts an automatic link the way lowercase www does. Check documents that relied on uppercase www being auto-linked. github.com
marked 16.3.0 breaking changes
- Signature changed
Marked.Hooks
Was Hooks: {new (options?: MarkedOptions<ParserOutput, RendererOutput> | undefined): _Hooks<ParserOutput, RendererOutput>; passThroughHooks: Set<string>;}; now Hooks: {new (options?: MarkedOptions<ParserOutput, RendererOutput> |... npmjs.com
marked 16.1.0 breaking changes
- Signature changed
defaults
Was let _defaults: MarkedOptions; now let _defaults: MarkedOptions<any, any>. npmjs.com - Signature changed
getDefaults
Was function _getDefaults(): MarkedOptions; now function _getDefaults<ParserOutput = string, RendererOutput = string>(): MarkedOptions<ParserOutput, RendererOutput>. npmjs.com
And 144 more in this version.
marked 16.0.0 breaking changes
- Removed
The minimum supported Node.js version is now 20. Upgrade Node.js before using this release. github.com - Removed
lib.marked.cjs
The CommonJS build is no longer shipped, so code that requires ./lib/marked.cjs will break. Use the ESM or UMD build instead. github.com
And 3 more in this version.
marked 15.0.11 breaking changes
- Signature changed
Renderer.image
Was image({href, title, text}: Tokens.Image): string; now image({href, title, text, tokens}: Tokens.Image): string. npmjs.com - Signature changed
RendererApi.image
Was image({href, title, text}: Tokens.Image): string; now image({href, title, text, tokens}: Tokens.Image): string. npmjs.com
And 1 more in this version.
marked 15.0.5 breaking changes
- Behavior changed
Strikethrough text nested inside strong or em is now parsed as GFM specifies, which can change rendered output for such input. github.com
marked 15.0.1 breaking changes
- Signature changed
Hooks.block
Was block: boolean | undefined; now block?: boolean. npmjs.com - Signature changed
marked
Was function marked(src: string, options?: MarkedOptions | undefined | null): string | Promise<string>; now function marked(src: string, options?: MarkedOptions | null): string | Promise<string>. npmjs.com
And 27 more in this version.
marked 15.0.0 breaking changes
- Behavior changed
HTML escaping moved from the tokenizers to the renderers for all tokens. Custom renderers that depended on the previous output may need to adjust how they handle escaping. github.com - Signature changed
Renderer.text
Was text(token: Tokens.Text | Tokens.Escape | Tokens.Tag): string; now text(token: Tokens.Text | Tokens.Escape): string. npmjs.com
And 3 more in this version.
marked 14.1.0 breaking changes
- Removed
block
The block export was removed in this release, so code importing it will no longer find it. npmjs.com - Removed
inline
The inline export was removed in this release, so code importing it will no longer find it. npmjs.com
And 1 more in this version.
marked 14.0.0 breaking changes
- Removed
The old renderer was removed. Code that depends on it must move to the current renderer. github.com - Removed
MarkedExtension.useNewRenderer
The useNewRenderer option was removed. Stop passing it and use the current renderer. npmjs.com
And 7 more in this version.
marked 13.0.1 breaking changes
- Signature changed
HooksObject
Was type HooksObject = {[K in keyof HooksApi]?: (...args: Parameters<HooksApi[K]>) => ReturnType<HooksApi[K]> | Promise<ReturnType<HooksApi[K]>>;}; now type HooksObject = {[K in keyof HooksApi]?: (this: _Hooks, ...args... npmjs.com - Signature changed
RendererObject
Was type RendererObject = {[K in keyof RendererApi]?: (...args: Parameters<RendererApi[K]>) => ReturnType<RendererApi[K]> | false;}; now type RendererObject = {[K in keyof RendererApi]?: (this: _Renderer, ...args... npmjs.com
And 1 more in this version.
marked 13.0.0 breaking changes
- Behavior changed
Parsing now emits an extra space token after a blockquote or horizontal rule when multiple newlines follow. Code that counts or walks tokens may see different output. github.com - Signature changed
Lexer.blockTokens
Was blockTokens(src: string, tokens?: Token[]): Token[] blockTokens(src: string, tokens?: TokensList): TokensList; now blockTokens(src: string, tokens?: Token[], lastParagraphClipped?: boolean): Token[] blockTokens(src: string, tokens?... npmjs.com
And 72 more in this version.
marked 12.0.0 breaking changes
- Behavior changed
Markdown punctuation handling now includes Unicode punctuation and symbol categories, which can change how emphasis and similar syntax parse around those characters. github.com - Behavior changed
HTML comments now include the short forms <!--> and <!---> per CommonMark 0.31, so content previously treated as text may now be parsed as an HTML comment. github.com
And 1 more in this version.
marked 11.1.0 breaking changes
- Removed
MarkedExtension.hooks.options
MarkedExtension.hooks.options was removed in marked 11.1.0 npmjs.com - Removed
MarkedExtension.hooks.postprocess
MarkedExtension.hooks.postprocess was removed in marked 11.1.0 npmjs.com
And 7 more in this version.
marked 11.0.0 breaking changes
- Removed
BlockRuleNames
BlockRuleNames was removed in marked 11.0.0 npmjs.com - Removed
BlockSubRuleNames
BlockSubRuleNames was removed in marked 11.0.0 npmjs.com
And 9 more in this version.
marked 10.0.0 breaking changes
- Removed
Node.js v16 is no longer supported. Upgrade to a newer Node.js version before updating marked. github.com
marked 9.1.6 breaking changes
- Signature changed
Marked.lexer
Was lexer: typeof _Lexer.lex; now lexer(src: string, options?: MarkedOptions): TokensList. npmjs.com - Signature changed
Marked.parser
Was parser: typeof _Parser.parse; now parser(tokens: Token[], options?: MarkedOptions): string. npmjs.com
marked 9.1.4 breaking changes
- Removed
"defaults"
"defaults" was removed in marked 9.1.4 npmjs.com - Removed
"helpers"
"helpers" was removed in marked 9.1.4 npmjs.com
And 19 more in this version.
marked 9.1.2 breaking changes
- Behavior changed
blockquote token.text
The text of blockquote tokens no longer includes a trailing newline. Code that depends on the old text with the newline should be updated. github.com
marked 9.0.0 breaking changes
- Removed
Built files were removed from the git repo, so web users who loaded them from the repository must switch to the npm build, for example via the jsDelivr CDN link. github.com
marked 8.0.0 breaking changes
- Removed
Deprecated options were removed in this release. To get the removed behavior back, enable it with extensions as described in the advanced options guide. github.com - Removed
"helpers".checkDeprecations
"helpers".checkDeprecations was removed in marked 8.0.0 npmjs.com
And 87 more in this version.
marked 7.0.5 breaking changes
- Signature changed
"Instance".Marked.walkTokens
Was walkTokens<T = void>(tokens: Token[] | TokensList, callback: (token: Token) => T | T[]): T[]; now walkTokens(tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]): MaybePromise[]. npmjs.com - Signature changed
"marked".marked.walkTokens
Was var walkTokens: <T = void>(tokens: Token[] | TokensList, callback: (token: Token) => T | T[]) => T[]; now var walkTokens: (tokens: Token[] | TokensList, callback: (token: Token) => MaybePromise | MaybePromise[]) => MaybePromise[]. npmjs.com
And 6 more in this version.
marked 7.0.4 breaking changes
- Signature changed
"marked".MarkedExtension.walkTokens
Was walkTokens?: ((token: Token) => void | Promise<void>) | undefined | null; now walkTokens?: ((token: Token) => void | unknown | Promise<void>) | undefined | null. npmjs.com - Signature changed
"marked".MarkedOptions.extensions
Was extensions?: (TokenizerAndRendererExtension[] & {renderers: Record<string, RendererExtensionFunction>; childTokens: Record<string, string[]>; block: any[]; inline: any[]; startBlock: Array<(this: TokenizerThis, src: string) => number |... npmjs.com
And 18 more in this version.
marked 7.0.2 breaking changes
- Signature changed
"helpers".splitCells
Was function splitCells(tableRow: string, count: number): string[]; now function splitCells(tableRow: string, count?: number): string[]. npmjs.com - Signature changed
"Hooks"._Hooks.postprocess
Was postprocess(html: string | undefined): string | undefined; now postprocess(html: string): string. npmjs.com
And 31 more in this version.
marked 7.0.1 breaking changes
- Removed
block
block was removed in marked 7.0.1 npmjs.com - Removed
defaults
defaults was removed in marked 7.0.1 npmjs.com
And 37 more in this version.
marked 7.0.0 breaking changes
- Default changed
headerIds
The headerIds option now defaults to false instead of true. If you relied on generated heading ids, set headerIds: true explicitly. github.com - Default changed
mangle
The mangle option now defaults to false instead of true. If you relied on the old default, set mangle: true explicitly. github.com
marked 6.0.0 breaking changes
- Removed
Marked.getDefaults
Marked.getDefaults was removed in marked 6.0.0 npmjs.com - Removed
marked.Lexer.blockTokens
Lexer.blockTokens was removed in marked 6.0.0 npmjs.com
And 206 more in this version.
marked 5.0.0 breaking changes
- Removed
The package now requires Node.js 18 or later. Upgrade Node.js to 18 or newer before using this version. github.com - Removed
marked.MarkedExtension.smartLists
MarkedExtension.smartLists was removed in marked 5.0.0 npmjs.com
And 4 more in this version.
marked 4.1.1 breaking changes
- Removed
smartLists
The smartLists option was removed from the code and docs, so setting it no longer has any effect. github.com
marked 4.1.0 breaking changes
- Signature changed
marked.TokenizerAndRendererExtension
Was type TokenizerAndRendererExtension = TokenizerExtension | RendererExtension | (TokenizerExtension & RendererExtension); now type TokenizerAndRendererExtension = | TokenizerExtension | RendererExtension | (TokenizerExtension &... npmjs.com
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.