Repository navigation
Environment-owned render validation
Application.validate_render()now discoversmmdcthrough the execution environment and verifies both installed Mermaid and Mermaid CLI versions before rendering.- Missing runtime packages return
renderer_unavailable; an incompatible engine or CLI pair returnsversion_mismatchwith supported and observed versions. - Mermaiden remains a binary-free Python package: it does not bundle Node.js, Mermaid CLI, Puppeteer, Chrome, or a runtime image.
- CI and package verification now render through Puppeteer's version-compatible browser, including an isolated installed-wheel consumer proof.
Migration
- Upgrade the Python package to
mermaiden==13.1.0. - Read the supported pair from
Application.mermaid_versionandApplication.mermaid_cli_version. - During environment or image construction, install those exact
mermaidand@mermaid-js/mermaid-cliversions and runnpx puppeteer browsers install. - Put that installation's
node_modules/.binon the runtimePATH. - Continue calling only
Application.validate_render(); do not pass executable or browser paths into Mermaiden.
Application startup and render validation perform no downloads. Existing source rendering and snapshot behavior remain available without the external renderer environment.