1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-09 17:29:54 +00:00

prompt tweaks and fixes

This commit is contained in:
Laura
2025-08-23 16:17:01 +02:00
parent d026c57ad2
commit a41162f5d8
14 changed files with 190 additions and 73 deletions

View File

@@ -8,7 +8,7 @@
pedantic: false,
walkTokens: (token) => {
const { type, lang, text } = token;
const { type, text } = token;
if (type === "html") {
token.text = token.text.replace(/&/g, "&")
@@ -20,6 +20,8 @@
return;
}
const lang = token.lang || "plaintext";
let code;
if (lang && hljs.getLanguage(lang)) {