UNPKG

@k9n/scully-plugin-mermaid

Version:

this plugin for Scully provides a postRenderer to generate a SVGs from mermaid source code sections

21 lines (16 loc) 469 B
import { registerPlugin } from '@scullyio/scully'; import { MermaidPluginName } from './constants'; import { mermaidPlugin } from './mermaid'; import { validator } from './validator'; export { MermaidPluginConfig } from './interfaces'; export { MermaidPluginName } from './constants'; /** * register the plugin */ registerPlugin( 'postProcessByHtml', MermaidPluginName, mermaidPlugin, validator ); export const getMermaidPlugin = () => MermaidPluginName;