feat: re-render mermaid when theme changed

This commit is contained in:
st1020 2024-03-18 20:51:37 +08:00
parent 44acba4041
commit be0ec891a0
4 changed files with 39 additions and 6 deletions

View file

@ -1,3 +1,3 @@
<pre class="mermaid bg-white">
<pre class="mermaid bg-inherit">
{{ body | trim_start_matches(pat="```mermaid") | trim_start_matches(pat="```") | trim_end_matches(pat="```") }}
</pre>