Skip to content

v4.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 02 Jul 23:31
f280bd7

4.0.0 (2026-07-02)

  • fix!: remove custom fence renderer; markdown-it-attrs v5 compatibility (#1121) (f280bd7), closes #1120

BREAKING CHANGES

  1. The language-* CSS class is now placed only on the <code> HTML tag, and no longer additionally on <pre>. This brings the plugin back in line with how markdown-it behaves out of the box. When migrating to this version, check your CSS selectors for anything targeting a class starting with language- on <pre> elements.
  2. Users who combine this plugin with markdown-it-attrs must use markdown-it-attrs v5.0.0 or later for full compatibility. markdown-it-attrs is now declared by this plugin as an optional peer dependency with a minium version of 5.0.0.
  3. Users who combine this plugin with markdown-it-attrs and configured highlightInlineCode: true for markdown-it-prism while also specifying allowedAttributes for markdown-it-attrs must include "language" in the allowedAttributes for markdown-it-prism’s highlighting to work.