forked from wallabag/wallabag
Move global highlight to material
This commit is contained in:
@ -20,7 +20,7 @@ import '@fontsource/montserrat';
|
||||
import '@fontsource/oswald';
|
||||
|
||||
/* Highlight */
|
||||
import '../_global/js/highlight';
|
||||
import './js/highlight';
|
||||
|
||||
import { savePercent, retrievePercent } from '../_global/js/tools';
|
||||
|
||||
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user