0.6.0 • Published 7 months ago

@southball/remark-mermaid v0.6.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

@southball/remark-mermaid

A remark plugin to convert code blocks with mermaid language set to SVGs.

All generated SVGs are placed in a div with remark-mermaid class set. In addition, the class remark-mermaid-${theme} is also set.

Installation

npm install @southball/remark-mermaid @mermaid-js/mermaid-cli

or, if using yarn,

yarn add @southball/remark-mermaid @mermaid-js/mermaid-cli

Configuration

By default, only the SVG for default theme is generated and inlined.

To set the themes, pass the option like follows:

{
  "themes": ["default", "dark"]
}

The diagram for each theme will then be generated in divs with class remark-mermaid-default and remark-mermaid-dark respectively. They can then be shown or hidden with custom CSS or JS.

0.6.0

7 months ago

0.3.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago