Replace highlightBlock with highlightElement

This commit is contained in:
umatare5 2021-04-18 19:59:49 +09:00
parent f67495ec01
commit eb5577e435
1 changed files with 1 additions and 1 deletions

View File

@ -19,6 +19,6 @@ hljs.registerLanguage('md', markdown);
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
hljs.highlightElement(block);
});
});