allow configuration of hightlight.js, fix video-player shortcode
This commit is contained in:
parent
fcb640727f
commit
b0f5b0b059
2 changed files with 3 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
import hljs from 'highlight.js';
|
||||
import * as params from '@params';
|
||||
|
||||
hljs.highlightAll();
|
||||
hljs.highlightAll(params.syntaxhighlight?.hljs);
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue