1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-12-02 20:22:52 +00:00

small fix

This commit is contained in:
Laura
2025-08-31 00:31:43 +02:00
parent 703d5373f0
commit 07ca59cfb1
2 changed files with 5 additions and 1 deletions

View File

@@ -41,7 +41,7 @@
code(code) {
const header = `<div class="pre-header">${escapeHtml(code.lang)}<button class="pre-copy" title="Copy code contents"></button></div>`;
return `<pre>${header}<code>${code.text}</code></pre>`;
return `<pre class="l-${escapeHtml(code.lang)}">${header}<code>${code.text}</code></pre>`;
},
link(link) {