@slidev/parser 0.46.2 → 0.47.0
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-GX6I4MMD.mjs → chunk-VVGYI2Z3.mjs} +6 -2
- package/dist/core.mjs +1 -1
- package/dist/fs.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -179,6 +179,10 @@ function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
|
|
|
179
179
|
...headmatter?.htmlAttrs
|
|
180
180
|
}
|
|
181
181
|
};
|
|
182
|
+
if (config.highlighter === "shikiji") {
|
|
183
|
+
console.warn(`[slidev] "shikiji" is merged back to "shiki", you can safely change it "highlighter: shiki"`);
|
|
184
|
+
config.highlighter = "shiki";
|
|
185
|
+
}
|
|
182
186
|
if (config.colorSchema !== "dark" && config.colorSchema !== "light")
|
|
183
187
|
config.colorSchema = "auto";
|
|
184
188
|
if (themeColorSchema && config.colorSchema === "auto")
|
|
@@ -189,13 +193,13 @@ function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
|
|
|
189
193
|
return config;
|
|
190
194
|
}
|
|
191
195
|
function verifyConfig(config, themeMeta = {}, warn = (v) => console.warn(`[slidev] ${v}`)) {
|
|
192
|
-
const themeHightlighter = ["prism", "shiki"
|
|
196
|
+
const themeHightlighter = ["prism", "shiki"].includes(themeMeta.highlighter || "") ? themeMeta.highlighter : void 0;
|
|
193
197
|
const themeColorSchema = ["light", "dark"].includes(themeMeta.colorSchema || "") ? themeMeta.colorSchema : void 0;
|
|
194
198
|
if (themeColorSchema && config.colorSchema !== themeColorSchema)
|
|
195
199
|
warn(`Color schema "${config.colorSchema}" does not supported by the theme`);
|
|
196
200
|
if (themeHightlighter && config.highlighter !== themeHightlighter)
|
|
197
201
|
warn(`Syntax highlighter "${config.highlighter}" does not supported by the theme`);
|
|
198
|
-
if (!["
|
|
202
|
+
if (!["unocss", void 0].includes(config.css)) {
|
|
199
203
|
warn(`Unsupported Atomic CSS engine "${config.css}", fallback to UnoCSS`);
|
|
200
204
|
config.css = "unocss";
|
|
201
205
|
}
|
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.
|
|
3
|
+
"version": "0.47.0",
|
|
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.
|
|
43
|
+
"@slidev/types": "0.47.0"
|
|
44
44
|
},
|
|
45
45
|
"scripts": {
|
|
46
46
|
"build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts",
|