allow configuration of hightlight.js, fix video-player shortcode

This commit is contained in:
Aaron Qian 2022-11-13 21:59:37 -08:00 committed by Aaron Qian
parent fcb640727f
commit b0f5b0b059
No known key found for this signature in database
GPG key ID: BF1A987C395B5B0E
2 changed files with 3 additions and 2 deletions

View file

@ -1,3 +1,4 @@
import hljs from 'highlight.js';
import * as params from '@params';
hljs.highlightAll();
hljs.highlightAll(params.syntaxhighlight?.hljs);

View file

@ -2,4 +2,4 @@ import Plyr from 'plyr';
import * as params from '@params';
const options = params.videoplayer?.plyr;
window.addEventListener('DOMContentLoaded', () => Plyr.setup('.js-player', options));
window.addEventListener('DOMContentLoaded', () => Plyr.setup('.video-player', options));