1
Fork 0

ensure it re-highlights code

This commit is contained in:
Jan-Erik Rediger 2024-05-25 18:33:44 +02:00
parent a5932e39c9
commit 9cd996f65c

View file

@ -1,9 +1,10 @@
import {CodeJar} from "./codejar.js" import {CodeJar} from "./codejar.js"
const highlight = editor => {
editor.textContent = editor.textContent
hljs.highlightElement(editor)
}
function highlight(editor) {
editor.textContent = editor.textContent;
editor.removeAttribute("data-highlighted");
hljs.highlightElement(editor);
}
function base64ToBytes(base64) { function base64ToBytes(base64) {
const binString = atob(base64); const binString = atob(base64);