@slidev/parser 0.45.0 → 0.46.1

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/README.md CHANGED
@@ -11,4 +11,3 @@ Refer to the TypeScript definitions for API.
11
11
  ## License
12
12
 
13
13
  MIT License © 2021 [Anthony Fu](https://github.com/antfu)
14
-
@@ -1,7 +1,7 @@
1
1
  // src/core.ts
2
2
  import YAML from "js-yaml";
3
3
 
4
- // ../../node_modules/.pnpm/@antfu+utils@0.7.6/node_modules/@antfu/utils/dist/index.mjs
4
+ // ../../node_modules/.pnpm/@antfu+utils@0.7.7/node_modules/@antfu/utils/dist/index.mjs
5
5
  function toArray(array) {
6
6
  array = array ?? [];
7
7
  return Array.isArray(array) ? array : [array];
@@ -157,7 +157,7 @@ function getDefaultConfig() {
157
157
  };
158
158
  }
159
159
  function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
160
- const themeHightlighter = ["prism", "shiki"].includes(themeMeta.highlighter || "") ? themeMeta.highlighter : void 0;
160
+ const themeHightlighter = ["prism", "shiki", "shikiji"].includes(themeMeta.highlighter || "") ? themeMeta.highlighter : void 0;
161
161
  const themeColorSchema = ["light", "dark"].includes(themeMeta.colorSchema || "") ? themeMeta.colorSchema : void 0;
162
162
  const defaultConfig = getDefaultConfig();
163
163
  const config = {
@@ -189,7 +189,7 @@ function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
189
189
  return config;
190
190
  }
191
191
  function verifyConfig(config, themeMeta = {}, warn = (v) => console.warn(`[slidev] ${v}`)) {
192
- const themeHightlighter = ["prism", "shiki"].includes(themeMeta.highlighter || "") ? themeMeta.highlighter : void 0;
192
+ const themeHightlighter = ["prism", "shiki", "shikiji"].includes(themeMeta.highlighter || "") ? themeMeta.highlighter : void 0;
193
193
  const themeColorSchema = ["light", "dark"].includes(themeMeta.colorSchema || "") ? themeMeta.colorSchema : void 0;
194
194
  if (themeColorSchema && config.colorSchema !== themeColorSchema)
195
195
  warn(`Color schema "${config.colorSchema}" does not supported by the theme`);
package/dist/core.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stringify,
16
16
  stringifySlide,
17
17
  verifyConfig
18
- } from "./chunk-U4NHYXZX.mjs";
18
+ } from "./chunk-GX6I4MMD.mjs";
19
19
  export {
20
20
  detectFeatures,
21
21
  filterDisabled,
package/dist/fs.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stringify,
16
16
  stringifySlide,
17
17
  verifyConfig
18
- } from "./chunk-U4NHYXZX.mjs";
18
+ } from "./chunk-GX6I4MMD.mjs";
19
19
 
20
20
  // src/fs.ts
21
21
  import { promises as fs } from "node:fs";
package/dist/index.mjs CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  stringify,
16
16
  stringifySlide,
17
17
  verifyConfig
18
- } from "./chunk-U4NHYXZX.mjs";
18
+ } from "./chunk-GX6I4MMD.mjs";
19
19
  export {
20
20
  detectFeatures,
21
21
  filterDisabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/parser",
3
- "version": "0.45.0",
3
+ "version": "0.46.1",
4
4
  "description": "Markdown parser for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "js-yaml": "^4.1.0",
43
- "@slidev/types": "0.45.0"
43
+ "@slidev/types": "0.46.1"
44
44
  },
45
45
  "scripts": {
46
46
  "build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts",