Skip to content

Commit

Permalink
Use <pre> tag for mermaid code blocks (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining committed Mar 2, 2023
1 parent 37c2273 commit 8f4a63f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions layouts/_default/_markup/render-codeblock-mermaid.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{ .Page.Store.Set "hasmermaid" true -}}

<div class="mermaid">
{{- .Inner | safeHTML }}
</div>
<pre class="mermaid">
{{- .Inner }}
</pre>

0 comments on commit 8f4a63f

Please sign in to comment.