@d0rich/nuxt-content-mermaid
@d0rich/nuxt-content-mermaid
This layer allows you to use mermaid in your nuxt content markdown files.
Setup
- Add
@d0rich/nuxt-content-mermaiddependency to your project
npm install @d0rich/nuxt-content-mermaid # or yarn add @d0rich/nuxt-content-mermaid
- Add
@d0rich/nuxt-content-mermaidto thebuildModulessection ofnuxt.config.ts
export default defineNuxtConfig({
extends: [
// Put this layer before one with nuxt content
'@d0rich/nuxt-content-mermaid'
]
})
- Configure layer in
app.config.ts
export default defineAppConfig({
contentMermaid: {
enabled: true,
/**
* @default 'default'
* @description 'default' or '@nuxtjs/color-mode'
*/
color: 'default',
spinnerComponent: 'DAnimationSpinner'
}
})
- Add code block to your markdown file with
mermaidlanguage specified.
Related Packages
@d0rich/nuxt-design-system
🖼️ Design system for d0rich's projects based on Nuxt 3 and Tailwind CSS
2,107
2
@nathanchase/nuxt-dayjs-module
This is a Nuxt 3 compatible module built with the official Nuxt 3 (module-builde...
19,376
31
Version History
| Version | Released | License |
|---|---|---|
| 1.0.0 | ||
| 0.4.1 | ||
| 0.4.0 | ||
| 0.3.1 | ||
| 0.3.0 | ||
| 0.2.0 | ||
| 0.1.5 | ||
| 0.1.2 | ||
| 0.1.1 | ||
| 0.1.0 |