Skip to content

Commit

Permalink
Merge pull request #240 from umatare5/fix/replace_be_deprecated_code
Browse files Browse the repository at this point in the history
Replace highlightBlock with highlightElement
  • Loading branch information
h-enk committed Apr 19, 2021
2 parents 5e7f8d0 + eb5577e commit fe043e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/js/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ hljs.registerLanguage('md', markdown);

document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('pre code').forEach((block) => {
hljs.highlightBlock(block);
hljs.highlightElement(block);
});
});

0 comments on commit fe043e3

Please sign in to comment.