@slidev/parser 51.4.0 → 51.5.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.
@@ -49,7 +49,8 @@ function getDefaultConfig() {
49
49
  contextMenu: null,
50
50
  wakeLock: true,
51
51
  remote: false,
52
- mdc: false
52
+ mdc: false,
53
+ seoMeta: {}
53
54
  };
54
55
  }
55
56
  function resolveConfig(headmatter, themeMeta = {}, filepath, verify = false) {
@@ -283,6 +284,7 @@ function parseSlide(raw, options = {}) {
283
284
  level,
284
285
  revision,
285
286
  content,
287
+ contentRaw: content,
286
288
  frontmatter,
287
289
  frontmatterStyle: matterResult.type,
288
290
  frontmatterDoc: matterResult.doc,
@@ -320,6 +322,11 @@ async function parse(markdown, filepath, extensions, options = {}) {
320
322
  slide.level = slide.frontmatter.level;
321
323
  }
322
324
  }
325
+ if (e.transformNote) {
326
+ const newNote = await e.transformNote(slide.note, slide.frontmatter);
327
+ if (newNote !== void 0)
328
+ slide.note = newNote;
329
+ }
323
330
  }
324
331
  }
325
332
  slides.push(slide);
package/dist/core.mjs CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  stringify,
12
12
  stringifySlide,
13
13
  verifyConfig
14
- } from "./chunk-CSUB553T.mjs";
14
+ } from "./chunk-SIS7SDEP.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-CSUB553T.mjs";
14
+ } from "./chunk-SIS7SDEP.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-CSUB553T.mjs";
14
+ } from "./chunk-SIS7SDEP.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.4.0",
3
+ "version": "51.5.0",
4
4
  "description": "Markdown parser for Slidev",
5
5
  "author": "antfu <anthonyfu117@hotmail.com>",
6
6
  "license": "MIT",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@antfu/utils": "^9.1.0",
44
- "yaml": "^2.7.0",
45
- "@slidev/types": "51.4.0"
44
+ "yaml": "^2.7.1",
45
+ "@slidev/types": "51.5.0"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "rimraf dist && tsup src/index.ts src/core.ts src/fs.ts src/utils.ts",