revert Fix links kinda
This commit is contained in:
Violet 2024-09-13 10:42:24 -05:00
parent f4e63d6a5f
commit 05ff2f0fa6

View file

@ -167,10 +167,11 @@ function highlighter(json, full = true, linkParent = false) {
var word = splitContent[y]
if (reg.test(word)) {
splitContent[y] = `<span ${style} ${classes}>${splitContent[y]}</span>`
if (link && !linkParent) {
splitContent[y] = `<a href="${link}">${splitContent[y]}</a>`
} else {
splitContent[y] = `<span ${style} ${classes}>${splitContent[y]}</span>`
}
}
}