@slidev/parser 51.3.0 → 51.4.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-BELJTX2B.mjs → chunk-CSUB553T.mjs} +6 -0
- package/dist/core.mjs +1 -1
- package/dist/fs.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -313,6 +313,12 @@ async function parse(markdown, filepath, extensions, options = {}) {
|
|
|
313
313
|
const newContent = await e.transformSlide(slide.content, slide.frontmatter);
|
|
314
314
|
if (newContent !== void 0)
|
|
315
315
|
slide.content = newContent;
|
|
316
|
+
if (typeof slide.frontmatter.title === "string") {
|
|
317
|
+
slide.title = slide.frontmatter.title;
|
|
318
|
+
}
|
|
319
|
+
if (typeof slide.frontmatter.level === "number") {
|
|
320
|
+
slide.level = slide.frontmatter.level;
|
|
321
|
+
}
|
|
316
322
|
}
|
|
317
323
|
}
|
|
318
324
|
}
|
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": "51.
|
|
3
|
+
"version": "51.4.0",
|
|
4
4
|
"description": "Markdown parser for Slidev",
|
|
5
5
|
"author": "antfu <anthonyfu117@hotmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dependencies": {
|
|
43
43
|
"@antfu/utils": "^9.1.0",
|
|
44
44
|
"yaml": "^2.7.0",
|
|
45
|
-
"@slidev/types": "51.
|
|
45
|
+
"@slidev/types": "51.4.0"
|
|
46
46
|
},
|
|
47
47
|
"scripts": {
|
|
48
48
|
"build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts src/utils.ts",
|