Load Mermaid on demand from a CDN (or any ESM URL). Mermaid is a large dependency most documents never need, so it is fetched only when a host asks, typically the first time a diagram block appears.
Load Mermaid on demand from a CDN (or any ESM URL). Mermaid is a large dependency most documents never need, so it is fetched only when a host asks, typically the first time a diagram block appears.