yanki 2.0.7 → 2.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/cli.js +128 -128
- package/dist/lib/index.js +2 -2
- package/dist/standalone/index.js +149 -149
- package/package.json +1 -1
package/dist/lib/index.js
CHANGED
|
@@ -39,7 +39,7 @@ import rehypeParse from "rehype-parse";
|
|
|
39
39
|
import rehypeRaw from "rehype-raw";
|
|
40
40
|
import rehypeStringify from "rehype-stringify";
|
|
41
41
|
import remarkRehype from "remark-rehype";
|
|
42
|
-
import {
|
|
42
|
+
import { createHighlighterCoreSync } from "shiki/core";
|
|
43
43
|
import { createJavaScriptRegexEngine } from "shiki/engine/javascript";
|
|
44
44
|
import { unified } from "unified";
|
|
45
45
|
import { u } from "unist-builder";
|
|
@@ -839,7 +839,7 @@ const plugin$2 = function() {
|
|
|
839
839
|
//#endregion
|
|
840
840
|
//#region src/lib/parse/rehype-utilities.ts
|
|
841
841
|
const DIMENSION_CHARS_REGEX = /^[\dx]+$/;
|
|
842
|
-
const highlighter =
|
|
842
|
+
const highlighter = createHighlighterCoreSync({
|
|
843
843
|
engine: createJavaScriptRegexEngine(),
|
|
844
844
|
langs: [
|
|
845
845
|
bash,
|