Skip to content

Commit

Permalink
Use <pre> tag for mermaid code blocks (google#1450)
Browse files Browse the repository at this point in the history
  • Loading branch information
deining authored and chalin committed Mar 2, 2023
1 parent 37c2273 commit c4d97b7
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 c4d97b7

Please sign in to comment.