0.2.0 • Published 6 months ago

@d0rich/nuxt-content-mermaid v0.2.0

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

@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.
0.2.0

6 months ago

0.1.5

6 months ago

0.1.2

11 months ago

0.1.1

1 year ago

0.1.0

1 year ago