We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56b60fc commit 152edc1Copy full SHA for 152edc1
2 files changed
content.tsx
@@ -135,6 +135,8 @@ function highlightCodeBlocks() {
135
}
136
137
})
138
+ // Configure highlight.js to ignore unescaped HTML warning
139
+ hljs.configure({ ignoreUnescapedHTML: true })
140
hljs.highlightAll()
141
142
popup.tsx
@@ -37,6 +37,9 @@ function IndexPopup() {
37
// Apply highlight to the preview block on render
38
useEffect(() => {
39
if (codeRef.current) {
40
41
42
+
43
// We must reset the DOM in case highlight.js already ran
44
codeRef.current.removeAttribute("data-highlighted")
45
codeRef.current.className = "language-javascript"
0 commit comments