Replace highlightBlock with highlightElement
This commit is contained in:
@ -19,6 +19,6 @@ hljs.registerLanguage('md', markdown);
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
document.querySelectorAll('pre code').forEach((block) => {
|
||||
hljs.highlightBlock(block);
|
||||
hljs.highlightElement(block);
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user