unstale

pypi / pymdown-extensions

pymdown-extensions

What changed in pymdown-extensions 10 to 13, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-20.

21 breaking3 security1 deprecations14 new APIs and options11 performance6 behavior and defaults28 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

pymdown-extensions 1333 changes

Breaking changes 8

  • Installs must require Python Markdown 3.10.3.

    13.1release notes

  • Affected extensions stop short of the recursion limit instead of raising a RecursionError; content past the limit is no longer specially processed.

    13.1release notes

  • When a URL responds with a 429, snippets use the server-requested delay instead of their backoff, and fail right away if that delay exceeds the longest they would wait themselves.

    13.1release notesdocs

  • BetterEm, Tilde, Caret, and Mark apply the CommonMark rule of 3 so ambiguous closing delimiters can skip an incompatible opener and pair with an earlier one.

    13.0release notes

  • Generic mode is now the default; the script approach remains available with updated configuration for recent MathJax versions.

    13.0release notes

  • Bare HTTP, HTTPS, and www links follow GFM extended autolink rules for link boundaries and allowed preceding characters; short-host links are allowed.

    13.0release notes

  • At least Python Markdown 3.10.3 is now required for performance improvements.

    13.0release notes

  • Python 3.10 is dropped; Python >= 3.11.5 is required because possessive quantifiers are broken on lower versions.

    13.0release notes

Security 1

  • Non-generic mode escapes content in script to prevent a closing script tag from causing unintended behavior.

    13.0release notes

New APIs and options 2

  • A new API finds which lines are snippet notation so extensions can leave them alone.

    13.1release notes

  • A new overridable snippet-processing step lets extensions add notation or change included content.

    13.1release notes

Performance 5

  • Parsing very long runs of ; or - in content and very long snippet paths with line ranges no longer has quadratic time complexity.

    13.1release notes

  • Improves performance of header patterns in Details, Admonitions, and SaneHeaders.

    13.0release notes

  • Improves performance of HTML patterns in Blocks.HTML.

    13.0release notes

  • Parsing many unclosed CriticMarkup openers now uses a linear-time scanner instead of a regular expression with quadratic or cubic time complexity.

    13.0release notes

  • Link and email patterns remove excessive backtracking to improve performance.

    13.0release notes

Fixes and other changes 17

  • Prevents text from being dropped when a stray delimiter that cannot open or close appears between delimiter pairs parsed together.

    13.0release notes

  • Prevents unused delimiters inside a parsed span from being reprocessed against later delimiter pairs and dropping or misplacing text.

    13.0release notes

  • Unusable delimiters dropped by another delimiter's region no longer leave stale space tracking that can reject valid pairs later.

    13.0release notes

  • Handles elements with unquoted attributes.

    13.0release notes

  • Generic mode output is fixed when tex_inline_wrap or tex_block_wrap contain braces.

    13.0release notes

  • Prevents a crash when a numbered caption is nested inside a figure not created by the caption block.

    13.0release notes

  • Fixes unwanted colon attributes with the {: ...} syntax.

    13.0release notes

  • Prevents text being dropped or misplaced when an unpaired [ precedes a span returned from the cache.

    13.0release notes

  • Fixes callouts in indented blockquotes.

    13.0release notes

  • Keeps i and I in alphabetical lists after a blank line.

    13.0release notes

  • Fixes a regression related to unmatched opening and closing.

    13.0release notes

  • URLs with balanced parentheses or brackets no longer lose their closing character.

    13.0release notes

  • Fixes a crash on malformed 100 percent values such as [=100,0%].

    13.0release notes

  • Escaped section markers no longer start or end a section before its start.

    13.0release notes

  • Fixes a crash when strip_comments is disabled.

    13.0release notes

  • Fixes a crash when a subscript or superscript with no space allowed starts inside emphasis.

    13.0release notes

  • BetterEm, Tilde, Caret, and Mark handle placeholders better when evaluating CommonMark punctuation rules.

    13.0release notes

pymdown-extensions 1224 changes

Breaking changes 10

  • BetterEm was completely rewritten for CommonMark compliance; * and _ emphasis are handled together for more natural nesting, with improved performance and possible subtle differences from legacy behavior.

    12.0release notes

  • The new no_space option controls whether the Pandoc-style requirement of no unescaped spaces is enabled for superscript; it is enabled by default.

    12.0release notes

  • Insertions can occur mid-word by default; set smart_insert to enable the previous behavior that prevented them.

    12.0release notes

  • This deprecated Arithmatex option was removed; use arithmatex_fenced_format instead.

    12.0release notes

  • This deprecated Arithmatex option was removed; use arithmatex_inline_format instead.

    12.0release notes

  • Marking can occur mid-word by default; set smart_mark to enable the previous behavior that prevented it.

    12.0release notes

  • Emoji no longer supports the undocumented and deprecated old-style custom emoji index logic.

    12.0release notes

  • The new no_space option controls whether the Pandoc-style requirement of no unescaped spaces is enabled for subscript; it is enabled by default.

    12.0release notes

  • Deletion can occur mid-word by default; set smart_delete to enable the previous behavior that prevented it.

    12.0release notes

  • This deprecated Slugs method was removed; use the documented slugify method with appropriate arguments instead.

    12.0release notes

New APIs and options 6

  • Adds a punctuation option to disable CommonMark punctuation rules in BetterEm.

    12.3release notes

  • Highlight accepts a simple string or a dictionary with a title and title mode; html treats the title as HTML, while text is the default.

    12.2release notes

  • A new rule forces CommonMark punctuation rules.

    12.2release notes

  • SuperFences adds title_mode for Pygments fenced blocks, allowing a title to be treated as HTML.

    12.2release notes

  • Custom fences can specify an optional reset function.

    12.1release notes

  • A new extension allows creation of spans using Pandoc-style bracket notation.

    12.0release notes

Performance 1

  • Performance is improved for long invalid Tilde and Caret delimiters.

    12.1release notes

Behavior and default changes 5

  • Tilde and Caret disable CommonMark punctuation rules by default for backwards compatibility; the rules are honored again when subscript or superscript is disabled.

    12.2release notes

  • Blocks.Admonitions can handle headers specially in titles.

    12.0release notes

  • Blocks.Details can handle headers specially in titles.

    12.0release notes

  • Details can handle headers specially in titles.

    12.0release notes

  • Quotes can handle headers specially in callout titles.

    12.0release notes

Fixes and other changes 2

pymdown-extensions 1112 changes

Breaking changes 2

Security 1

New APIs and options 2

  • Set restrict_path to False to disable the default restriction on relative links.

    11.0release notes

  • Specify a location different from base_path for restricting paths; it is also used as a relative base for image paths.

    11.0release notes

Performance 5

  • InlineHilite improves the performance of inline code matching.

    11.0.2release notes

  • Keys fixes inefficiencies in its regex pattern.

    11.0.2release notes

  • Fixes regex pattern inefficiencies in BetterEm.

    11.0.1release notes

  • Fixes regex pattern inefficiencies in Caret.

    11.0.1release notes

  • Fixes regex pattern inefficiencies in MagicLink.

    11.0.1release notes

Fixes and other changes 2

  • Blocks.HTML fixes backtracking in the HTML extension.

    11.0.2release notes

  • Fixes an exception caused by an empty title in Tabbed.

    11.0release notes

pymdown-extensions 1015 changes

Breaking changes 1

  • Twemoji is updated to use Unicode 16, changing the emoji set used by the extension.

    10.19release notes

Security 1

  • Fixes a directory traversal regression that could load a snippet outside the base path when restrict_base_path is enabled.

    10.21.3release notessecurity advisory

Deprecations 1

  • Critic view mode is deprecated; explicitly set mode to accept or reject to avoid warnings or future issues.

    10.18release notes

New APIs and options 4

  • Caption now supports specifying classes and arbitrary attributes in addition to IDs.

    10.21release notes

  • Quotes optionally enables specifying callouts or alerts in the style used by GitHub and Obsidian.

    10.20release notes

  • A new blockquotes extension uses a more modern approach and does not group consecutive blockquotes together in the same lazy fashion as Python Markdown's default.

    10.20release notes

  • Caption block headers can specify static IDs using #id syntax.

    10.17release notes

Behavior and default changes 1

  • The deprecation of Critic's view mode is rolled back; further enhancements to this mode are not planned.

    10.19release notes

Fixes and other changes 7

  • Avoids passing a filename for code block titles of None, which latest Pygments versions cannot handle.

    10.21.2release notes

  • The first class for callouts, the alert type, is always rendered lowercase.

    10.21.1release notes

  • Fixes a matching pattern for Bitbucket repos.

    10.21release notes

  • Fixes nested math parsing when block $$ math is used inline within a paragraph.

    10.19.1release notes

  • important is available as a default for Block Admonition.

    10.18release notes

  • Blocks extensions better handle nesting of indented style Admonitions, Details, Tabbed, and other non-conflicting blocks.

    10.17.2release notes

  • Fixes an issue where Highlight can override another extension in Python Markdown’s registered list.

    10.17.1release notes