跳到主要內容
版本:3.5.2

📦 theme-mermaid

這個佈景主題提供了一個 @theme/Mermaid 元件,它由 mermaid 提供支援。您可以在 圖表 文件中閱讀更多內容。

npm install --save @docusaurus/theme-mermaid

設定

docusaurus.config.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,
},
};