Repository navigation
Releases
Releases · markedjs/marked
v18.3.0
18.3.0 (2026-11-24)
Bug Fixes
- allow trailing tabs after closing code fences (#4241) (1e11902)
- avoid quadratic scan on adjacent inline links (#4274) (f5ffd22)
- avoid quadratic time on long local part before @ in GFM text (#4225) (c6b22e8)
- check own properties on extensions.renderers in Parser (#4271) (c572307)
- honor the CLI end-of-options marker (#4230) (a1ddc72)
- keep an indented code block after a list item paragraph (#4198) (b9e3824)
- preserve literal entities in image alt text (#4232) (04f1c6e)
- reject CLI options missing their values (#4261) (502e658)
- skip missing optional childTokens properties in walkTokens (#4262) (283f74f)
- wait for CLI error output before exiting (#4263) (6c2a5ab)
Features
Performance Improvements
v18.2.1
18.2.1 (2026-11-16)
Bug Fixes
- allow tabs between the tag name and attributes of an html block (#4207) (738ebeb)
- cli: wait for stdout before exiting (#4197) (b535046)
- continue a block quote paragraph with a lazy line that starts an html tag (#4202) (8a578e4)
- end a block quote at a lazy line after an empty list item (#4178) (e2f77b4)
- end a list item before a lazy line after an empty or non-paragraph nested block (#4183) (ac2256e)
- Fix bracket escapes inside code spans in link text being stripped (#4205) (9a26ae9), closes #4176 #4176 #4176
- keep a tab after the block quote marker's space literal (#4208) (2d3b47f)
- keep rejected table candidates in the preceding paragraph (#4218) (1c5969e)
- keep tabs that are code content under a block quote (#4217) (d2c6f73), closes #4184
- let a mid-run opener close against a delimiter that can also open (#4203) (06e1d10)
- let an autolink or inline html line start or continue a setext heading (#4191) (72d0fec)
- parse links generated by inline tokenizers (#4204) (0460f98)
- preserve trailing blank lines in fenced code (#4200) (7499eb3)
- reject a link destination in angle brackets with an unescaped < or > (#4206) (de71210)
- remove a task item's checkbox marker from its own text (#4215) (5902442)
- types: preserve custom output types in tokenizer overrides (#4214) (5e35708)
Performance Improvements
v18.2.0
18.2.0 (2026-11-09)
Bug Fixes
- keep hard line breaks in image alt text (#4187) (ed54c54)
- let emphasis open after the other delimiter character (#4169) (219492a)
- let emphasis open and close in angle brackets that are not html (#4190) (7bfa1f7)
- preserve zero from named extension renderers (#4199) (b81a00a)
- text after a heading or code block in a nested list item is pulled into the outer item (#4179) (4cb767a)
Features
v18.1.3
18.1.3 (2026-11-02)
Bug Fixes
- allow trailing tabs after a setext heading underline (#4152) (1f1b480)
- avoid quadratic scan for unmatched emphasis delimiters (#4103) (eab1e48), closes #4099
- await promise arrays from walkTokens extensions (#4153) (c38704c)
- cli: honor defaults and config when outputting tokens (#4146) (9470e8f)
- collapse internal whitespace when normalizing link labels (#4157) (02c73e8)
- do not allow a blank line inside a link reference definition label (#4165) (f3d21af)
- don't treat an escaped ) or quote as an inline link or title closer (#4151) (9cb84e0)
- end a list item before a lazy line after an html block (#4159) (7ba42f4)
- end blockquote before a lazy line after a table (#4161) (e7dcf52)
- isolate extension names from Object.prototype (#4177) (5cb03bd)
- keep a block quote open after a lazy line in a nested block quote (#4175) (1d7272f)
- only close a code fence with the opening fence character (#4164) (1d4d8fe)
- preserve zero-valued custom renderer results (#4162) (e43ceef)
- recognize task list items when a tab follows the checkbox (#4163) (64a299d)
- start a GFM www autolink only at a word boundary (#4166) (84beefb)
Performance Improvements
v18.1.2
18.1.2 (2026-10-26)
Bug Fixes
- allow a tab or end of input after a type 6 html block tag name (#4128) (e09c40d)
- apply emphasis flanking and rules 9-10 to the whole delimiter run (#4145) (5d8e234)
- cli: await config functions before parsing (#4138) (3a11ad1)
- cli: create no-clobber output files atomically (#4135) (e7c4f64)
- do not continue a block quote paragraph from a whitespace-only line (#4134) (42f34a8)
- expand a tab after the block quote marker to the next tab stop (#4110) (2d3899b)
- honor per-call async options when composing hooks (#4139) (379be9d)
- keep a line starting with # but no space in the list item (#4127) (6b63189)
- keep duplicate link definitions in the tokens (#4132) (2784acc)
- keep lazy lines after a list in a nested blockquote (#4137) (38c7e55)
- keep lazy setext underlines in list items as text (#4126) (398234c)
- render nested image alt formatting as plain text (#4131) (15f59bb)
- stop an unclosed inline raw tag from unescaping later blocks (#4130) (4562b6f)
Performance Improvements
v18.1.1
18.1.1 (2026-10-12)
Bug Fixes
- cli: honor an explicitly empty string input (#4113) (ec3a4e5)
- end blockquote before a lazy line after a heading, hr or html block (#4115) (9e64a6a)
- keep a backslash in a code span from hiding emphasis (#4117) (6a57018)
- keep a decoded character reference from forming a new one (#4111) (6bbac0c), closes #38 #112
- let indented and type 3-5 html blocks interrupt a paragraph (#4124) (eaa1fff)
- make walkTokens linear by appending values in place (#4121) (627d9ae), closes #4120
- match pre, script, style and textarea as whole tag names (#4114) (0db74cb)
- preserve enclosing link state after parsing images (#4123) (cc07bb9)
- respect tab stops in list continuation indentation (#4119) (4bd2528)
Performance Improvements
v18.1.0
v18.0.14
18.0.14 (2026-09-22)
Bug Fixes
- allow indented lines in setext heading text (#4095) (7d05530)
- decode numeric character references in text (#4076) (cead8de)
- keep text after empty nested blockquote (#4101) (1b89557), closes #4098
- preserve internal tabs in list item content (#4086) (e136da7)
- strip whitespace when normalizing link reference labels (#4091) (c7ee43a)
- support GFM protocol autolinks (#4067) (7f7a496)
v18.0.13
18.0.13 (2026-09-12)
Bug Fixes
- allow tabs in the thematic break that ends a list item (#4087) (afbb27c)
- avoid O(n^2) scanning in reflinkSearch (#4090) (c6a25bb)
- case fold reference link labels (#4077) (aed9336)
- drop the leading whitespace after a hard line break (#4075) (123ce04)
- match html block start conditions when ending a list item (#4072) (c2facac)
- respect raw tokens when closing link labels (#4066) (ef394f7)
- strip a tab that follows spaces in an indented code block (#4080) (dbb393d)
v18.0.12
18.0.12 (2026-09-07)
Bug Fixes
- allow a tab before the closing sequence of an ATX heading (#4084) (4417582)
- allow one more level of nested brackets in a link label (#4064) (37b28d8)
- do not add a newline to an empty code block (#4073) (23b1706)
- escape character references in autolink destinations (#4053) (8f432f0)
- reject GFM email autolink when the domain ends in _ or - (#4063) (df57534)
- reject invalid characters in HTML tag names (#4083) (300bb1d)
- remove up to the fence indentation from each content line (#4074) (0244f08)