fix: make copy button copy raw markdown

This commit is contained in:
swaits committed 2025-10-07 16:34:20 -07:00
1 parent 5d6f929cc4
commit e1c6604432
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -2,7 +2,7 @@
{{ define "main" }}
{{ $latest := index (where .Site.RegularPages "Section" "versions").ByDate.Reverse 0 }}
<div class="coc-box">
<div class="coc-box" data-raw-content="{{ $latest.RawContent }}">
<button class="copy-btn" onclick="copyCoC()">[copy]</button>
{{ $latest.Content }}
</div>