File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
import { createHighlighterCoreSync } from '@shikijs/core' ;
4
- import { createJavaScriptRegexEngine } from '@shikijs/engine-javascript ' ;
4
+ import { createOnigurumaEngine } from '@shikijs/engine-oniguruma ' ;
5
5
import { toString } from 'hast-util-to-string' ;
6
6
import { h as createElement } from 'hastscript' ;
7
7
import { SKIP , visit } from 'unist-util-visit' ;
@@ -15,7 +15,7 @@ const languagePrefix = 'language-';
15
15
// Creates a Singleton instance for Shiki's syntax highlighter using WASM
16
16
const shikiHighlighter = createHighlighterCoreSync ( {
17
17
...shikiConfig ,
18
- engine : createJavaScriptRegexEngine ( ) ,
18
+ engine : await createOnigurumaEngine ( import ( 'shiki/wasm' ) ) ,
19
19
} ) ;
20
20
21
21
// Creates a static button element which is used for the "copy" button
You can’t perform that action at this time.
0 commit comments