File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 1- import hljs from 'highlight.js' ;
21import CustomElementConstructor from './class/HTMLCodeBlockElement' ;
32import { mkHighlightCallback } from './utils/highlight' ;
43import './utils/add-style' ;
54
5+ const hljs = require ( 'highlight.js' ) ;
6+
67CustomElementConstructor . highlight = mkHighlightCallback ( hljs ) ;
78customElements . define ( 'code-block' , CustomElementConstructor ) ;
89
Original file line number Diff line number Diff line change 1- import hljs from 'highlight.js/lib/common' ;
21import CustomElementConstructor from './class/HTMLCodeBlockElement' ;
32import { mkHighlightCallback } from './utils/highlight' ;
43import './utils/add-style' ;
54
5+ const hljs = require ( 'highlight.js/lib/common' ) ;
6+
67CustomElementConstructor . highlight = mkHighlightCallback ( hljs ) ;
78customElements . define ( 'code-block' , CustomElementConstructor ) ;
89
Original file line number Diff line number Diff line change 1- import hljs from 'highlight.js/lib/core' ;
21import CustomElementConstructor from './class/HTMLCodeBlockElement' ;
32import { mkHighlightCallback } from './utils/highlight' ;
43import './utils/add-style' ;
54
5+ const hljs = require ( 'highlight.js/lib/core' ) ;
6+
67CustomElementConstructor . highlight = mkHighlightCallback ( hljs ) ;
78customElements . define ( 'code-block' , CustomElementConstructor ) ;
89
You can’t perform that action at this time.
0 commit comments