Skip to content

Commit

Permalink
fix: format diagram for mermaid shortcode
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jul 2, 2024
1 parent fd07584 commit 930b333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion layouts/shortcodes/mermaid.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{ .Page.Store.Set "hasMermaid" true -}}
<pre class="mermaid">
{{- .Inner | safeHTML -}}
{{- .Inner | replaceRE "\n" "\n\t" -}}
</pre>

0 comments on commit 930b333

Please sign in to comment.