vitepress v1.3.2
➜ Local: http://localhost:5174/
➜ Network: http://192.168.1.101:5174/
➜ press h to show help
The language 'mmd' is not loaded, falling back to 'txt' for syntax highlighting.
vite.config.ts
import { withMermaid } from "vitepress-plugin-mermaid";
export default withMermaid({
plugins: [vue()],
// your existing vitepress config...
// optionally, you can pass MermaidConfig
mermaid: {
// refer https://mermaid.js.org/config/setup/modules/mermaidAPI.html#mermaidapi-configuration-defaults for options
},
// optionally set additional config for plugin itself with MermaidPluginConfig
mermaidPlugin: {
class: "mermaid my-class", // set additional css classes for parent container
},
});
Does it work with the latest versions of Vue and Vite?
package.json
output
vite.config.ts