Merge pull request #607 from maxbischoff/fix-codeblock-copy-button-in-details

fix: copy-button not being rendered in details blocks
This commit is contained in:
Xin 2025-03-10 23:05:43 +00:00 committed by GitHub
commit 2b83a3762f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,5 +25,5 @@
{{- if transform.CanHighlight $lang -}}
<div>{{- highlight $content $lang $options -}}</div>
{{- else -}}
<pre><code>{{ $content }}</code></pre>
<div><pre><code>{{ $content }}</code></pre></div>
{{- end -}}