parent
f4e63d6a5f
commit
05ff2f0fa6
1 changed files with 2 additions and 1 deletions
|
@ -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>`
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue