Re-enable parenthesis highlighting
This commit is contained in:
parent
e0b7906f14
commit
e024247160
1 changed files with 8 additions and 8 deletions
|
@ -163,14 +163,14 @@ function highlighter(json, full = true, linkParent = false) {
|
||||||
var startContent = element.content.substring(spanStart - 1, termIndex)
|
var startContent = element.content.substring(spanStart - 1, termIndex)
|
||||||
var endContent = element.content.substring(termIndex + termKey.length, spanEnd)
|
var endContent = element.content.substring(termIndex + termKey.length, spanEnd)
|
||||||
|
|
||||||
// if (startContent.includes("(") && !endContent.includes(")")) {
|
if (startContent.includes("(") && !endContent.includes(")")) {
|
||||||
// spanEnd = element.content.indexOf(")", spanStart) + 1
|
spanEnd = element.content.indexOf(")", spanStart) + 1
|
||||||
// endContent = element.content.substring(termIndex + termKey.length, spanEnd)
|
endContent = element.content.substring(termIndex + termKey.length, spanEnd)
|
||||||
// }
|
}
|
||||||
// else if (endContent.includes(")") && !startContent.includes("(")) {
|
else if (endContent.includes(")") && !startContent.includes("(")) {
|
||||||
// spanStart = element.content.substring(0, spanStart).lastIndexOf("(")
|
spanStart = element.content.substring(0, spanStart).lastIndexOf("(")
|
||||||
// startContent = element.content.substring(spanStart - 1, termIndex)
|
startContent = element.content.substring(spanStart - 1, termIndex)
|
||||||
// }
|
}
|
||||||
|
|
||||||
var style = termProps.style || ""
|
var style = termProps.style || ""
|
||||||
var classes = termProps.classes || ""
|
var classes = termProps.classes || ""
|
||||||
|
|
Loading…
Reference in a new issue