Back to Docusaurus

📦 theme-mermaid

website/versioned_docs/version-3.8.1/api/themes/theme-mermaid.mdx

3.10.1588 B
Original Source

📦 theme-mermaid

This theme provides a @theme/Mermaid component that is powered by mermaid. You can read more on diagrams documentation.

bash
npm install --save @docusaurus/theme-mermaid

Configuration

js
export default {
  themes: ['@docusaurus/theme-mermaid'],
  // In order for Mermaid code blocks in Markdown to work,
  // you also need to enable the Remark plugin with this option
  markdown: {
    mermaid: true,
  },
};