unstale

pypi / markdown

markdown

What changed in markdown 3, from its official release notes, upgrade guides and advisories. Also covers types-markdown. Sources checked 2026-11-25.

5 breaking1 security8 performance2 behavior and defaults17 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

markdown 333 changes

Breaking changes 5

  • Python 3.15 is officially supported, and Python 3.10 support is dropped.

    3.11.0release notes

  • The Setext header processor no longer accepts headers with mixed = and - characters.

    3.10.3release notes

  • PyPy 3.11 is officially supported, and PyPy 3.9 support is dropped.

    3.10.0release notes

  • Python 3.14 is officially supported, and Python 3.9 support is dropped.

    3.10.0release notes

  • The default is reverted to True because the experimental behavior introduced in 3.9.0 produced inconsistent results.

    3.10.0release notes

Security 1

  • Attribute names are sanitized so they cannot break out of their tag and inject markup.

    3.11.2release notes

Performance 8

  • Regex backtracking no longer takes quadratic time for an unclosed block attribute list followed by many spaces.

    3.11.3release notes

  • Parsing many consecutive footnote definitions no longer takes quadratic time.

    3.11.3release notes

  • Regex backtracking no longer takes quadratic time when a long run of # characters is followed by more text.

    3.11.3release notes

  • Documents with many unclosed HTML comments no longer trigger quadratic-time processing.

    3.11.3release notes

  • Parsing many consecutive reference definitions no longer takes quadratic time.

    3.11.3release notes

  • ID generation no longer takes quadratic time when many headers share the same text.

    3.11.3release notes

  • Inline processors resume searching after the previous match, improving performance for repeated inline patterns.

    3.11.0release notes

  • Fixes quadratic-time regex backtracking when a link reference definition has no URL and has many trailing spaces.

    3.11.0release notes

Behavior and default changes 2

  • Automatic links now support URL schemes beyond HTTP and FTP, such as ssh.

    3.11.3release notes

  • Enforcement of CommonMark style punctuation rules is reverted for backwards compatibility.

    3.11.2release notes

Fixes and other changes 17

  • Attributes without values are preserved as provided instead of rendering as key="key", keeping HTML and XHTML output consistent.

    3.11.3release notes

  • Text is no longer lost when opening and closing backticks do not match.

    3.11.3release notes

  • The language name is escaped in non-Pygments output, matching Pygments output.

    3.11.3release notes

  • Abbreviations with empty definitions after inline elements are ignored consistently with those before inline elements.

    3.11.3release notes

  • Long chains of tokens are now handled correctly by new emphasis handling.

    3.11.3release notes

  • Complete HTML tags containing quoted > characters are stripped from labels and generated heading IDs.

    3.11.3release notes

  • Inline HTML attributes containing < or > are no longer rejected.

    3.11.1release notes

  • Emphasis handling was reworked to improve handling of nested emphasis.

    3.11.1release notes

  • Raw HTML comments inside an inline HTML element that closes in the same paragraph no longer split the paragraph.

    3.11.1release notes

  • An unterminated end tag such as </foo no longer causes all remaining content to be dropped.

    3.11.1release notes

  • Removing Abbreviations no longer raises an error.

    3.11.0release notes

  • Fixes excessive regex backtracking when matching inline code blocks.

    3.11.0release notes

  • The extension now honors tags added to Markdown.block_level_elements after the extension is loaded.

    3.11.0release notes

  • Makes handling of </ more reliable.

    3.10.2release notes

  • Fixes a regression related to comment handling.

    3.10.2release notes

  • Nested elements inside inline comments are now properly unescaped.

    3.10.1release notes

  • Handling bogus, unclosed, or bad HTML comments no longer causes an infinite loop.

    3.10.0release notesrelease notes