feat: 支持以代碼塊形式書寫 mermaid closed #1479

This commit is contained in:
Jerry
2024-04-10 16:35:14 +08:00
parent 9e0dce6c7a
commit ae35499658
6 changed files with 192 additions and 171 deletions

View File

@@ -58,12 +58,17 @@ if hexo-config('waline.bg')
.medium-zoom-overlay
z-index: 99999 !important
.mermaid-wrap
margin: 0 0 20px
text-align: center
if hexo-config('mermaid.enable')
.mermaid-wrap
margin: 0 0 20px
text-align: center
& > svg
height: 100%
& > svg
height: 100%
if hexo-config('mermaid.code_write')
pre > code.mermaid
display: none
.utterances,
.fb-comments iframe