Packages

marked

18.2.1 · 16 Nov 2026MIT138.2M / weekRepositoryHomepagenpmAtom feed

Upgrading marked From 0.3.17 to 18.2.1

184 releases in betweennotes for 183

Reading releases, release notes and advisories…

Other targets from 0.3.17Newest 0.x0.8.2Clears its 3 advisories4.0.10
  1. 0.3.17yours
  2. 2 releases
  3. 0.4.0security
  4. 0.5.0security
  5. 0.5.1security
  6. 1 release
  7. 0.6.0major
  8. 0.6.1security
  9. 0.6.2security
  10. 1 release
  11. 0.7.0major
  12. 0.8.0major
  13. 2 releases
  14. 1.0.0major
  15. 13 releases
  16. 2.0.0major
  17. 11 releases
  18. 3.0.0major
  19. 8 releases
  20. 4.0.0major
  21. 9 releases
  22. 4.0.10security
  23. 25 releases
  24. 5.0.0major
  25. 8 releases
  26. 6.0.0major
  27. 7.0.0major
  28. 5 releases
  29. 8.0.0major
  30. 1 release
  31. 9.0.0major
  32. 10 releases
  33. 10.0.0major
  34. 11.0.0major
  35. 4 releases
  36. 12.0.0major
  37. 2 releases
  38. 13.0.0major
  39. 3 releases
  40. 14.0.0major
  41. 5 releases
  42. 15.0.0major
  43. 12 releases
  44. 16.0.0major
  45. 9 releases
  46. 17.0.0major
  47. 3 releases
  48. 17.0.4security
  49. 17.0.5security
  50. 1 release
  51. 18.0.0major
  52. 19 releases
  53. 18.2.1target
78+
changes to make
3
advisories fixed
55+
new
312+
fixes

Counted from 183 of 184 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 3 advisories affecting 0.3.17

  • Fix catastrophic backtracking (ReDoS) in link/reflink label regex

    17.0.5
  • Prevent ReDoS in inline link regex title group

    17.0.4
  • security: fix redos vulnerabilities

    4.0.10
  • Link redos #1426

    0.6.2
  • Text redos #1460

    0.6.2
  • Fix parenthesis url redos #1414

    0.6.1
  • Fix inline code regex and prevent REDOS #1337

    0.5.1
  • Use @markedjs/html-differ to prevent REDOS #1331

    0.5.1
  • Use rtrim, not unsafe /X+$/ #1260

    0.5.0
  • Fix unsafe heading regex

    0.4.0

Release by release

  1. 18.2.1

    16 Nov 20263 new · 16 fixes
    • New

      Check the first character before inline tokenizer regexes

    • New

      Close residual O(n²) parse time on unmatched emphasis/strikethrough delimiter runs (follow-up to #4099 / #4103)

    • 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

  2. 18.2.0

    9 Nov 20261 new · 5 fixes
    • 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

  3. 18.1.3

    2 Nov 20261 new · 15 fixes
    • New

      Fix backtracking in padantic html

    • Fixed

      Allow trailing tabs after a setext heading underline

    • Fixed

      Avoid quadratic scan for unmatched emphasis delimiters (#4103) (eab1e48), closes #4099

    • Fixed

      Await promise arrays from walkTokens extensions

  4. 18.1.2

    26 Oct 20261 new · 13 fixes
    • 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

  5. 18.1.1

    12 Oct 20261 new · 9 fixes
    • 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

  6. 18.1.0

    5 Oct 20261 new · 3 fixes
    • 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

  7. 18.0.14

    22 Sep 20266 fixes
    • Fixed

      Allow indented lines in setext heading text

    • Fixed

      Decode numeric character references in text

    • Fixed

      Keep text after empty nested blockquote (#4101) (1b89557), closes #4098

    • Fixed

      Preserve internal tabs in list item content

    • Fixed

      Strip whitespace when normalizing link reference labels

    • Fixed

      Support GFM protocol autolinks

  8. 18.0.13

    12 Sep 20267 fixes
    • 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

19 other lines we could not sort, mostly version bumps
  • https://cdn.jsdelivr.net/npm/marked/marked.min.js

    9.0.0
  • Use latest commit for demo master #1457

    0.6.3
  • Update tests to commonmark 0.29 #1465

    0.6.3
  • Update tests to GFM 0.29 #1470

    0.6.3
  • Update man page to include --test and fix argv parameters #1442

    0.6.2
  • Pretty print ENOENT errors on cli #1396

    0.6.0
  • Update repo url in man #1403

    0.6.0
  • Make Steven (@styfle) a npm publisher #1346

    0.5.2
  • Move license file back to root dir #1356

    0.5.2
  • Refactor the escape() function to improve performance 10-20% #975

    0.5.1

46 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.