Skip to content

Commit

Permalink
Fix text highlighting for tdx update
Browse files Browse the repository at this point in the history
  • Loading branch information
ejunga committed Jun 2, 2025
1 parent 115c470 commit c96357b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tdx-enhanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -1084,7 +1084,11 @@
}
} else {
if (re && link) {
element = link
let text = link.innerText
link.innerText = ""
element = link.appendChild(document.createElement("span"))
element.innerText = text
element.style.lineHeight = "1.4"
//reset regex
re.lastIndex = 0
}
Expand Down

0 comments on commit c96357b

Please sign in to comment.