Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 811 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 811 Bytes

@vue-storefront/nuxt-Mermaid

npm

Use Mermaid.js Diagrams in Nuxt 3

This Nuxt plugin provides a global component wrapping Mermaid.js. The plugin is designed to work with Nuxt v3.

Installation

You can install it with

yarn add -D @vue-storefront/nuxt-Mermaid

or

npm install --save-dev @vue-storefront/nuxt-Mermaid

Usage

The recommended usage is to place your mermaidjs diagrams inside a fenced code block with the language 'Mermaid':

```Mermaid
sequenceDiagram
Alice->John: Hello John, how are you?
loop every minute
    John-->Alice: Great!
end
```