small changes

master
Araozu 2024-04-23 10:15:21 -05:00
parent 3070cc92f7
commit 0fd81d31e3
1 changed files with 4 additions and 3 deletions

View File

@ -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>