mirror of
https://github.com/coalaura/whiskr.git
synced 2025-09-08 00:29:54 +00:00
tweaks
This commit is contained in:
@@ -10,7 +10,13 @@
|
||||
walkTokens: (token) => {
|
||||
const { type, lang, text } = token;
|
||||
|
||||
if (type !== "code") {
|
||||
if (type === "html") {
|
||||
token.text = token.text.replace(/&/g, "&")
|
||||
token.text = token.text.replace(/</g, "<")
|
||||
token.text = token.text.replace(/>/g, ">")
|
||||
|
||||
return;
|
||||
} else if (type !== "code") {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user