Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/reuixiy/hugo-theme-meme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorreuixiy <reuixiy@gmail.com>2020-03-11 16:55:41 +0300
committerreuixiy <reuixiy@gmail.com>2020-03-11 16:55:41 +0300
commit431ef631f9b49fcefc04d683d341703792aa6d67 (patch)
tree73f9846c56e1e3255a33ba1a41490555cf1e911e /config-examples
parent17ed2eae96a008ed559feb87dce407d40a04b95c (diff)
feat: add mermaid support (#75)
usage 1. enable mermaid in post's front matter, e.g. --- mermaid: true 2. include content with `<div>`, e.g. <div class="mermaid"> graph TD; A-->B; A-->C; B-->D; C-->D; </div>
Diffstat (limited to 'config-examples')
-rw-r--r--config-examples/en/config.toml9
-rw-r--r--config-examples/zh-cn/config.toml9
2 files changed, 18 insertions, 0 deletions
diff --git a/config-examples/en/config.toml b/config-examples/en/config.toml
index 79d056d..4676c74 100644
--- a/config-examples/en/config.toml
+++ b/config-examples/en/config.toml
@@ -606,6 +606,15 @@ uglyURLs = false
######################################
+ # Mermaid (https://github.com/mermaid-js/mermaid)
+
+ enableMermaid = false
+ # Note: *global settings*
+ # `mermaid` in post’s Front Matter
+ # has a higher priority than here
+
+
+ ######################################
# Comments
# Note: render only in production
diff --git a/config-examples/zh-cn/config.toml b/config-examples/zh-cn/config.toml
index 216312f..6001835 100644
--- a/config-examples/zh-cn/config.toml
+++ b/config-examples/zh-cn/config.toml
@@ -557,6 +557,15 @@ uglyURLs = false
######################################
+ # Mermaid (https://github.com/mermaid-js/mermaid)
+
+ # 是否开启(全局设置)
+ enableMermaid = false
+ # 说明:文章的 Front Matter 中的 `mermaid`
+ # 的优先级高于此处
+
+
+ ######################################
# 评论
# 说明:仅在生产环境(production)下渲染