diff --git a/content/notes/config.md b/content/notes/config.md index d6321b3..f0e63e4 100644 --- a/content/notes/config.md +++ b/content/notes/config.md @@ -57,6 +57,9 @@ enableRecentNotes: false enableGitHubEdit: true GitHubLink: https://github.com/jackyzha0/quartz/tree/hugo/content +# whether to render mermaid diagrams +enableMermaid: true + # whether to use Operand to power semantic search # IMPORTANT: replace this API key with your own if you plan on using # Operand search! diff --git a/data/config.yaml b/data/config.yaml index 6e1c75c..106eeb8 100644 --- a/data/config.yaml +++ b/data/config.yaml @@ -11,6 +11,7 @@ enableFooter: true enableContextualBacklinks: true enableRecentNotes: false enableGitHubEdit: true +enableMermaid: true GitHubLink: https://github.com/jackyzha0/quartz/tree/hugo/content search: enableSemanticSearch: false diff --git a/layouts/_default/_markup/render-codeblock-mermaid.html b/layouts/_default/_markup/render-codeblock-mermaid.html new file mode 100644 index 0000000..5964155 --- /dev/null +++ b/layouts/_default/_markup/render-codeblock-mermaid.html @@ -0,0 +1,4 @@ +