fix: make copy button copy raw markdown
This commit is contained in:
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user