@slidev/parser 0.50.0-beta.1 → 0.50.0-beta.2

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.
@@ -109,6 +109,8 @@ function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
109
109
  console.warn(`[slidev] "shikiji" is merged back to "shiki", you can safely change it "highlighter: shiki"`);
110
110
  config.highlighter = "shiki";
111
111
  }
112
+ if (config.highlighter === "prism")
113
+ throw new Error(`[slidev] "prism" support has been dropped. Please use "highlighter: shiki" instead`);
112
114
  if (config.colorSchema !== "dark" && config.colorSchema !== "light")
113
115
  config.colorSchema = "auto";
114
116
  if (themeColorSchema && config.colorSchema === "auto")
@@ -119,7 +121,7 @@ function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
119
121
  return config;
120
122
  }
121
123
  function verifyConfig(config, themeMeta = {}, warn = (v) => console.warn(`[slidev] ${v}`)) {
122
- const themeHightlighter = ["prism", "shiki"].includes(themeMeta.highlighter || "") ? themeMeta.highlighter : void 0;
124
+ const themeHightlighter = themeMeta.highlighter === "shiki" ? themeMeta.highlighter : void 0;
123
125
  const themeColorSchema = ["light", "dark"].includes(themeMeta.colorSchema || "") ? themeMeta.colorSchema : void 0;
124
126
  if (themeColorSchema && config.colorSchema !== themeColorSchema)
125
127
  warn(`Color schema "${config.colorSchema}" does not supported by the theme`);
package/dist/core.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  stringify,
14
14
  stringifySlide,
15
15
  verifyConfig
16
- } from "./chunk-B5TCG27R.mjs";
16
+ } from "./chunk-R2T34HUD.mjs";
17
17
  export {
18
18
  detectFeatures,
19
19
  getDefaultConfig,
package/dist/fs.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  stringify,
14
14
  stringifySlide,
15
15
  verifyConfig
16
- } from "./chunk-B5TCG27R.mjs";
16
+ } from "./chunk-R2T34HUD.mjs";
17
17
 
18
18
  // src/fs.ts
19
19
  import fs from "node:fs";
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ import {
13
13
  stringify,
14
14
  stringifySlide,
15
15
  verifyConfig
16
- } from "./chunk-B5TCG27R.mjs";
16
+ } from "./chunk-R2T34HUD.mjs";
17
17
  export {
18
18
  detectFeatures,
19
19
  getDefaultConfig,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/parser",
3
- "version": "0.50.0-beta.1",
3
+ "version": "0.50.0-beta.2",
4
4
  "description": "Markdown parser for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "dependencies": {
39
39
  "@antfu/utils": "^0.7.10",
40
40
  "yaml": "^2.5.1",
41
- "@slidev/types": "0.50.0-beta.1"
41
+ "@slidev/types": "0.50.0-beta.2"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts",