marked-mermaid
v0.1.0
Published
Marked.js extensions to render Mermaid.js
Downloads
14
Readme
marked-mermaid
Usage
import {marked} from "marked";
import markedMermaid from "marked-mermaid";
// or UMD script
// <script src="https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js"></script>
// <script src="https://cdn.jsdelivr.net/npm/marked-mermaid/lib/index.umd.js"></script>
const options = {
// |default options|
};
marked.use(markedMermaid(options));
marked.parse("|example markdown|");
// <p>|example html|</p>