ensure it re-highlights code
This commit is contained in:
parent
a5932e39c9
commit
9cd996f65c
|
@ -1,9 +1,10 @@
|
|||
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) {
|
||||
const binString = atob(base64);
|
||||
|
|
Loading…
Reference in a new issue