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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user