feat: markdown style

This commit is contained in:
tim
2025-07-21 23:07:03 +08:00
parent 846b265b9a
commit 929b9baa0c
4 changed files with 8 additions and 5 deletions

View File

@@ -14,7 +14,7 @@ const md = new MarkdownIt({
} else {
code = hljs.highlightAuto(str).value
}
return `<pre class="code-block"><button class="copy-code-btn">复制</button><code class="hljs language-${lang || ''}">${code}</code></pre>`
return `<pre class="code-block"><button class="copy-code-btn">Copy</button><code class="hljs language-${lang || ''}">${code}</code></pre>`
}
})