@slidev/parser 0.50.0-beta.1 → 0.50.0-beta.3
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/{chunk-B5TCG27R.mjs → chunk-R2T34HUD.mjs} +3 -1
- package/dist/core.mjs +1 -1
- package/dist/fs.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -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 =
|
|
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
package/dist/fs.mjs
CHANGED
package/dist/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slidev/parser",
|
|
3
|
-
"version": "0.50.0-beta.
|
|
3
|
+
"version": "0.50.0-beta.3",
|
|
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.
|
|
41
|
+
"@slidev/types": "0.50.0-beta.3"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts",
|