Skip to content

Commit 7f77eea

Browse files
Eoicclaude
andcommitted
fix: revert to Material built-in mermaid rendering
mermaid2 plugin hooks are not invoked by zensical (Rust-based SSG that bypasses MkDocs plugin architecture). Revert to the original pymdownx.superfences fence_code_format which Material's bundled JS handles natively. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent a48c94e commit 7f77eea

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

mkdocs.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ theme:
4949
plugins:
5050
- search:
5151
separator: '[\s\-\.]+'
52-
- mermaid2:
53-
version: '10.4.0'
54-
arguments:
55-
theme: |
56-
^(window.matchMedia('(prefers-color-scheme: dark)').matches ||
57-
document.body.getAttribute('data-md-color-scheme') === 'slate' ? 'dark' : 'default')
5852

5953
exclude_docs: |
6054
SUMMARY.md
@@ -90,7 +84,11 @@ markdown_extensions:
9084
- pymdownx.mark
9185
- pymdownx.smartsymbols
9286
- pymdownx.snippets
93-
- pymdownx.superfences
87+
- pymdownx.superfences:
88+
custom_fences:
89+
- name: mermaid
90+
class: mermaid
91+
format: !!python/name:pymdownx.superfences.fence_code_format
9492
- pymdownx.tabbed:
9593
alternate_style: true
9694
- pymdownx.tasklist:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ readme = "README.md"
66
license = { text = "MIT" }
77
requires-python = ">=3.10"
88

9-
dependencies = ["zensical>=0.0.24", "mkdocs-swagger-ui-tag>=0.6", "mkdocs-mermaid2-plugin>=1.2"]
9+
dependencies = ["zensical>=0.0.24", "mkdocs-swagger-ui-tag>=0.6"]
1010

1111
[project.optional-dependencies]
1212
dev = ["linkchecker>=10.0"]

0 commit comments

Comments
 (0)