mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
Move global highlight to material
This commit is contained in:
parent
8c2df28596
commit
e63f7ab12e
2 changed files with 1 additions and 1 deletions
8
assets/material/js/highlight.js
Normal file
8
assets/material/js/highlight.js
Normal file
|
@ -0,0 +1,8 @@
|
|||
import 'highlight.js/styles/atom-one-light.css';
|
||||
import hljs from 'highlight.js';
|
||||
|
||||
window.addEventListener('load', () => {
|
||||
document.querySelectorAll('pre').forEach((element) => {
|
||||
hljs.highlightElement(element);
|
||||
});
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue