🐛 fix: Preserve Mermaid indentation disrupted by Hugo minify (#2069)

Add a pre tag to the Mermaid class to preserve indentation and ensure data retrieval on DOMContentLoaded
This commit is contained in:
ZhenShuo Leo committed 2025-04-22 05:53:15 +08:00
1 parent 0d03681d20
commit 059d22ca96
2 files changed
+13 -2

No files matched your search

+1 -1
View File
@@ -1,3 +1,3 @@
<div class="mermaid" align="center">
{{ .Inner }}
<pre>{{ .Inner | safeHTML }}</pre>
</div>