@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.
@@ -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
@@ -11,7 +11,7 @@ import {
11
11
  stringify,
12
12
  stringifySlide,
13
13
  verifyConfig
14
- } from "./chunk-BELJTX2B.mjs";
14
+ } from "./chunk-CSUB553T.mjs";
15
15
  import {
16
16
  parseAspectRatio,
17
17
  parseRangeString
package/dist/fs.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  stringify,
12
12
  stringifySlide,
13
13
  verifyConfig
14
- } from "./chunk-BELJTX2B.mjs";
14
+ } from "./chunk-CSUB553T.mjs";
15
15
  import {
16
16
  parseAspectRatio,
17
17
  parseRangeString
package/dist/index.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  stringify,
12
12
  stringifySlide,
13
13
  verifyConfig
14
- } from "./chunk-BELJTX2B.mjs";
14
+ } from "./chunk-CSUB553T.mjs";
15
15
  import {
16
16
  parseAspectRatio,
17
17
  parseRangeString
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slidev/parser",
3
- "version": "51.3.0",
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.3.0"
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",