Skip to content

Commit f55d1ab

Browse files
committed
clean up syntax hl template
1 parent a6f1c0c commit f55d1ab

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

js/app.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,7 @@ document.addEventListener('DOMContentLoaded', () => {
6464
elements.editor.value = previousState;
6565
updateWordCount(previousState, elements.wordCount);
6666
elements.preview.innerHTML = markdownToHTML(previousState);
67-
68-
// Apply syntax highlighting
69-
document.querySelectorAll('#html-preview pre code').forEach(block => {
70-
hljs.highlightElement(block);
71-
});
67+
7268
}
7369
});
7470

@@ -78,11 +74,6 @@ document.addEventListener('DOMContentLoaded', () => {
7874
elements.editor.value = nextState;
7975
updateWordCount(nextState, elements.wordCount);
8076
elements.preview.innerHTML = markdownToHTML(nextState);
81-
82-
// Apply syntax highlighting
83-
document.querySelectorAll('#html-preview pre code').forEach(block => {
84-
hljs.highlightElement(block);
85-
});
8677
}
8778
});
8879

0 commit comments

Comments
 (0)