unstale

pypi / sphinxcontrib-mermaid

sphinxcontrib-mermaid

What changed in sphinxcontrib-mermaid 1 to 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

4 breaking8 new APIs and options1 performance4 behavior and defaults17 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

sphinxcontrib-mermaid 218 changes

Breaking changes 1

New APIs and options 5

  • Adds an option for passing a global Mermaid configuration.

    2.1.0release notes

  • Adds mermaid_dark_theme as a config option for configurable theme switching.

    2.0.2release notes

  • Adds mermaid_light_theme as a config option for configurable theme switching.

    2.0.2release notes

  • Exports runMermaid to window for frontend hot reloading.

    2.0.1release notes

  • Dynamic theme changes are now supported.

    2.0.0release notes

Performance 1

  • Loads the ZenUML plugin only on pages that contain a ZenUML diagram.

    2.1.0release notes

Fixes and other changes 11

  • Generated Mermaid caption nodes preserve source metadata so Sphinx can extract them into gettext catalogs and apply normal caption translations.

    2.1.1release notes

  • The HTML visitor passes the existing Mermaid image class through, making PNG output consistently targetable with CSS.

    2.1.1release notes

  • Fixes d3 zoom on nested SVGs.

    2.1.0release notes

  • Fixes fullscreen button positioning inconsistency.

    2.1.0release notes

  • Fixes interactions between the fullscreen, zoom, and lazy-render features.

    2.1.0release notes

  • Skips injecting Mermaid JavaScript when the output format does not support it.

    2.1.0release notes

  • Confines the injected ZenUML stylesheet to the diagram subtree so it no longer restyles the host theme.

    2.1.0release notes

  • Root-level pages now use a valid relative ES module specifier for local JS module imports.

    2.0.3release notes

  • Diagrams hidden by a parent are rendered when they become visible, fixing broken SVGs.

    2.0.3release notes

  • mmdc error messages are captured as strings for nicer error display.

    2.0.3release notes

  • Local Mermaid, ELK, ZenUML, and D3 JavaScript paths are resolved under html_static_path.

    2.0.2release notes

sphinxcontrib-mermaid 116 changes

Breaking changes 3

  • The fullscreen container class is renamed from mermaid-fullscreen-content to mermaid-container-fullscreen.

    1.2.0release notes

  • The default placeholder changes from div to pre.

    1.0.0release notes

  • Support for Python 3.7 is dropped.

    1.0.0release notes

New APIs and options 3

Behavior and default changes 4

  • Chart size defaults are adjusted to more closely resemble previous defaults.

    1.2.1release notes

  • Graphs are made full width, avoiding unused margins in the graph image.

    1.2.0release notes

  • The default CDN for JavaScript assets changes from unpkg to jsdelivr.

    1.0.0release notes

  • Mermaid frontmatter is now passed through.

    1.0.0release notes

Fixes and other changes 6

  • Fixes an issue with ELK charts by upgrading the ELK plugin.

    1.2.3release notes

  • Hotfixes inclusion of CSS/JS assets via the old MANIFEST mechanism.

    1.2.2release notes

  • Fixes an issue with fullscreen classes after rebase.

    1.2.1release notes

  • JavaScript is normalized across various configuration options.

    1.2.0release notes

  • Fixes handling of Mermaid sequence config arguments.

    1.0.0release notes

  • Fixes tempfile encoding when content contains non-ASCII characters.

    1.0.0release notes