We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de3f67 commit 38e63adCopy full SHA for 38e63ad
src/BootstrapBlazor.Server/Components/Components/Pre.razor.js
@@ -55,7 +55,7 @@ export async function highlight(id) {
55
56
if (el) {
57
const invoke = () => {
58
- hljs.highlightElement(el.querySelector('code'))
+ hljs.highlightElement(el.querySelector('code'));
59
el.querySelector('.loading').classList.add('d-none')
60
el.classList.remove('loaded')
61
}
@@ -64,6 +64,9 @@ export async function highlight(id) {
64
const handler = setInterval(() => {
65
const done = window.hljs !== void 0;
66
if (done) {
67
+ hljs.configure({
68
+ ignoreUnescapedHTML: true
69
+ });
70
clearInterval(handler)
71
resolve()
72
0 commit comments