unstale

pypi / markdown-it-py

markdown-it-py

What changed in markdown-it-py 3 to 4, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-29.

5 breaking1 security1 deprecations7 new APIs and options3 performance2 behavior and defaults6 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.9 on npm

markdown-it-py 412 changes

Breaking changes 2

New APIs and options 4

  • Adds a factory for configuring fence markers.

    4.2.0release notes

  • A new preset provides task lists, alerts, and single-tilde strikethrough.

    4.1.0release notes

  • Plugins can register inline terminator characters.

    4.1.0release notes

  • The CLI accepts input via the --stdin option.

    4.1.0release notes

Performance 2

Behavior and default changes 1

  • The number of autocompleted cells in a table is limited.

    4.0.0release notes

Fixes and other changes 3

markdown-it-py 313 changes

Breaking changes 3

Security 1

  • A possible ReDOS issue in the newline rule was fixed.

    3.0.0release notes

Deprecations 1

  • Use of StateBase.srcCharCode is deprecated but remains backward-compatible; core uses were replaced by StateBase.src.

    3.0.0release notes

New APIs and options 3

  • A new inline rule linkifies full URLs and prevents emphasis from colliding with the linkifier; emails and fuzzy links are unaffected.

    3.0.0release notes

  • The final core rule joins adjacent text and text_special tokens; custom typographic rules should be inserted before it.

    3.0.0release notes

  • A new token type represents HTML entities and backslash-escaped characters so core typographic transformation rules are not incorrectly applied to them.

    3.0.0release notes

Performance 1

  • The skipSpaces and skipChars operations were made faster.

    3.0.0release notes

Behavior and default changes 1

  • The four-space indent limitation is applied only when indented code blocks are enabled, allowing other block elements to use greater indentation when they are disabled.

    3.0.0release notes

Fixes and other changes 3

  • Nested emphasis parsing was improved.

    3.0.0release notes

  • Passing numeric character references was fixed.

    3.0.0release notes

  • A tab no longer prevents paragraph continuation in lists.

    3.0.0release notes