Skip to content

Commit

Permalink
fix: add task list
Browse files Browse the repository at this point in the history
  • Loading branch information
evan361425 committed Dec 9, 2024
1 parent 44927cf commit 4c0784a
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ markdown_extensions:
# Code block highlight
- pymdownx.highlight
# Code block allow nested
- pymdownx.superfences
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid_custom
# MathJax
- pymdownx.arithmatex:
generic: true
Expand All @@ -171,6 +175,8 @@ markdown_extensions:
slugify: !!python/object/apply:pymdownx.slugs.slugify
kwds:
case: lower
- pymdownx.tasklist:
custom_checkbox: true
# 允許增加 tooltip,於 MD 檔下方中增加下列說明
# *[Text]: Description
- abbr
Expand Down Expand Up @@ -207,18 +213,18 @@ plugins:
- essay/index.md
- mermaid2:
arguments:
# 這裡會有個問題,當使用者亮暗模式切換時,不會重新 render,一般來說可以使用以下方法解決:
# markdown_extensions:
# - pymdownx.superfences:
# custom_fences:
# - name: mermaid
# class: mermaid
# format: !!python/name:mermaid2.fence_mermaid_custom
# 但是這樣會導致 mermaid2 的設定失效,例如以下的 securityLevel,所以只好用這個方法
securityLevel: antiscript
# https://mermaid.js.org/config/theming.html#available-themes
theme: |
^(JSON.parse(__md_get("__palette").index == 1)) ? 'dark' : 'default'
# 這裡會有個問題,當使用者亮暗模式切換時,不會重新 render,一般來說可以使用以下方法解決:
# markdown_extensions:
# - pymdownx.superfences:
# custom_fences:
# - name: mermaid
# class: mermaid
# format: !!python/name:mermaid2.fence_mermaid_custom
# 但是這樣會導致 mermaid2 的設定失效,例如以下的 securityLevel,所以只好用這個方法
# securityLevel: antiscript
# https://mermaid.js.org/config/theming.html#available-themes
# theme: |
# ^(JSON.parse(__md_get("__palette").index == 1)) ? 'dark' : 'default'
# 用來注入最新的修改
- blogging:
# https://github.com/liang2kl/mkdocs-blogging-plugin
Expand Down

0 comments on commit 4c0784a

Please sign in to comment.