@d0rich/nuxt-content-mermaid

Add mermaid support to @nuxt/content
2,405 2
Install
npm install @d0rich/nuxt-content-mermaid
Latest Version:1.0.0
Last Updated:Aug 22, 2026
Links: GitHub  ·  npm
Maintainer: d0rich

@d0rich/nuxt-content-mermaid

This layer allows you to use mermaid in your nuxt content markdown files.

Setup

  1. Add @d0rich/nuxt-content-mermaid dependency to your project
npm install @d0rich/nuxt-content-mermaid # or yarn add @d0rich/nuxt-content-mermaid
  1. Add @d0rich/nuxt-content-mermaid to the buildModules section of nuxt.config.ts
export default defineNuxtConfig({
  extends: [
    // Put this layer before one with nuxt content
    '@d0rich/nuxt-content-mermaid'
  ]
})
  1. Configure layer in app.config.ts
export default defineAppConfig({
  contentMermaid: {
    enabled: true,
    /**
     * @default 'default'
     * @description 'default' or '@nuxtjs/color-mode'
     */
    color: 'default',
    spinnerComponent: 'DAnimationSpinner'
  }
})
  1. Add code block to your markdown file with mermaid language specified.

Related Packages

d0xigen

🌬🕮 Documentation theme created to breathe life into d0rich's projects. Based on...

2,231 2
@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
cap-socket

Functions developed by Cap to establish real-time and persistent communication w...

968
@brc-dd/nuxt-i18n

Minimal module for i18n with locale auto-imports & localized routing

898 12

Version History

Version Released License
1.0.0
0.4.1
0.4.0
0.3.1
0.3.0