1.0.0 • Published 8 months ago

@d0rich/nuxt-content-mermaid v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
8 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.
1.0.0

8 months ago

0.4.1

11 months ago

0.4.0

11 months ago

0.3.1

1 year ago

0.3.0

1 year ago

0.2.0

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

3 years ago

0.1.0

3 years ago