Fix links kinda

This commit is contained in:
bingus_violet 2024-09-11 15:41:57 -05:00
parent c6b2f65171
commit f4e63d6a5f

View file

@ -167,11 +167,10 @@ 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>`
}
}
}