Packages

marked

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

Your version

5.0.0

major2 May 2023Where it was published

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, and langPrefix which 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, and callback| marked-highlight| |mangle| marked-mangle| |baseUrl| marked-base-url| |smartypants| marked-smartypants| |xhtml| marked-xhtml| |headerIds and headerPrefix| 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, and langPrefix which 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

    OptionReplacement
    highlight, langPrefix, and callbackmarked-highlight
    manglemarked-mangle
    baseUrlmarked-base-url
    smartypantsmarked-smartypants
    xhtmlmarked-xhtml
    headerIds and headerPrefixmarked-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.