feat: mermaid shortcode support code block inside

This commit is contained in:
st1020 2023-10-22 22:15:53 +08:00
parent aa98b6e5e2
commit 64580f4df0
2 changed files with 42 additions and 11 deletions

View file

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