Skip to content

exsilium/nodebb-plugin-mermaid

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeBB Mermaid parser

A plugin to parse mermaid codeblocks and render them with Mermaid. Now updated to support NodeBB v2.0.0+

Packaged mermaid version: ^9.1.1

Installation

npm install nodebb-plugin-mermaid

Usage

Make sure the nodebb-plugin-markdown feature Automatically detect and highlight code blocks has been enabled.

Write a valid mermaid graph within a post as a code block:

```mermaid
graph TD;
A-->B;
A-->C;
B-->D;
C-->D;
```

Contributions

This software also uses portions of the following projects:

Project Copyright
nodebb-plugin-katex Copyright (c) 2015 Benjamin Abel.
mermaid Copyright (c) 2014 Knut Sveidqvist