small changes
This commit is contained in:
parent
3070cc92f7
commit
0fd81d31e3
@ -84,14 +84,15 @@
|
|||||||
const new_div = document.createElement("div");
|
const new_div = document.createElement("div");
|
||||||
const code = el.innerText;
|
const code = el.innerText;
|
||||||
|
|
||||||
el.parentElement.classList.add("language-thp");
|
el.parentElement.className = "language-thp"
|
||||||
pre_parent.removeChild(el);
|
pre_parent.removeChild(el);
|
||||||
pre_parent.appendChild(new_div);
|
pre_parent.appendChild(new_div);
|
||||||
|
|
||||||
CodeJar(new_div, thp_highlighter, {
|
CodeJar(new_div, thp_highlighter, {
|
||||||
tab: " "
|
tab: " "
|
||||||
}).updateCode(code);
|
}).updateCode(code);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user