mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 06:20:07 +02:00

Use the default vitepress highlighter instead of making our own highlighter using shiki. The benefits are: - We don't need to directly depend on shiki - `mermaid-example` code-blocks will use the same highlighting as other languages (e.g. `html`/`js`). - We can control the theme from the global `vitepress` config. - Darkmode/lightmode themes are supported - Escaping is already handled by the default highlight function