mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
6da6edfc01
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