@@ -88,6 +88,12 @@ exports[`md parser > frontmatter.md > slides 1`] = `
88
88
},
89
89
" layout" : " cover" ,
90
90
},
91
+ " frontmatterRaw" : " layout: cover
92
+ fonts :
93
+ sans : Roboto , Lato
94
+ serif : Mate SC
95
+ mono : Fira Code
96
+ " ,
91
97
" importChain" : undefined ,
92
98
" index" : 0 ,
93
99
" level" : 1 ,
@@ -149,6 +155,11 @@ fonts:
149
155
" title" : " FooBar" ,
150
156
},
151
157
},
158
+ " frontmatterRaw" : " meta:
159
+ title : FooBar
160
+ duration : 12
161
+ layout : center
162
+ " ,
152
163
" importChain" : undefined ,
153
164
" index" : 1 ,
154
165
" level" : 1 ,
@@ -204,6 +215,7 @@ This is note
204
215
{
205
216
" content" : " # Morning" ,
206
217
" frontmatter" : {},
218
+ " frontmatterRaw" : undefined ,
207
219
" importChain" : undefined ,
208
220
" index" : 2 ,
209
221
" level" : 1 ,
@@ -236,6 +248,8 @@ Hey",
236
248
" frontmatter" : {
237
249
" layout" : " text" ,
238
250
},
251
+ " frontmatterRaw" : " layout: text
252
+ " ,
239
253
" importChain" : undefined ,
240
254
" index" : 3 ,
241
255
" level" : undefined ,
@@ -287,6 +301,7 @@ this should be treated as code block
287
301
Also part of the code block
288
302
\` \`\` ",
289
303
"frontmatter": { } ,
304
+ "frontmatterRaw": undefined,
290
305
"importChain": undefined,
291
306
"index": 4,
292
307
"level": undefined,
@@ -334,6 +349,10 @@ Also part of the code block
334
349
" frontmatter" : {
335
350
" layout" : " from yaml" ,
336
351
},
352
+ " frontmatterRaw" : "
353
+ # The first yaml block should be treated as frontmatter
354
+ layout : from yaml
355
+ " ,
337
356
" importChain" : undefined ,
338
357
" index" : 5 ,
339
358
" level" : undefined ,
@@ -381,6 +400,8 @@ Content 2",
381
400
"frontmatter": {
382
401
" layout" : " cover" ,
383
402
} ,
403
+ "frontmatterRaw": "layout: cover
404
+ ",
384
405
"importChain": undefined,
385
406
"index": 6,
386
407
"level": 1,
@@ -435,6 +456,7 @@ layout: should not from yaml 2
435
456
436
457
Content 3",
437
458
"frontmatter": { } ,
459
+ "frontmatterRaw": undefined,
438
460
"importChain": undefined,
439
461
"index": 7,
440
462
"level": 1,
@@ -554,6 +576,8 @@ exports[`md parser > mdc.md > slides 1`] = `
554
576
" frontmatter" : {
555
577
" mdc" : true ,
556
578
},
579
+ " frontmatterRaw" : " mdc: true
580
+ " ,
557
581
" importChain" : undefined ,
558
582
" index" : 0 ,
559
583
" level" : 1 ,
@@ -674,6 +698,7 @@ Sample Text
674
698
console.log('Hello World')
675
699
\`\`\` ",
676
700
"frontmatter": { } ,
701
+ "frontmatterRaw": undefined,
677
702
"importChain": undefined,
678
703
"index": 0,
679
704
"level": 1,
@@ -724,6 +749,7 @@ console.log('Hello World')
724
749
- Hey
725
750
- Yo " ,
726
751
" frontmatter" : {},
752
+ " frontmatterRaw" : undefined ,
727
753
" importChain" : undefined ,
728
754
" index" : 1 ,
729
755
" level" : 1 ,
@@ -763,6 +789,7 @@ console.log('Hello World')
763
789
{
764
790
" content" : " Nice to meet you" ,
765
791
" frontmatter" : {},
792
+ " frontmatterRaw" : undefined ,
766
793
" importChain" : undefined ,
767
794
" index" : 2 ,
768
795
" level" : undefined ,
@@ -864,6 +891,7 @@ exports[`md parser > multi-entries.md > slides 1`] = `
864
891
{
865
892
" content" : " # Page 1" ,
866
893
" frontmatter" : {},
894
+ " frontmatterRaw" : undefined ,
867
895
" importChain" : [
868
896
{
869
897
" content" : " " ,
@@ -939,6 +967,8 @@ src: sub/page1.md
939
967
" background" : " https://sli.dev/demo-cover.png#2" ,
940
968
" layout" : " cover" ,
941
969
},
970
+ " frontmatterRaw" : " layout: cover
971
+ " ,
942
972
" importChain" : [
943
973
{
944
974
" content" : " " ,
@@ -1041,6 +1071,7 @@ layout: cover
1041
1071
" frontmatter" : {
1042
1072
" background" : " https://sli.dev/demo-cover.png#34" ,
1043
1073
},
1074
+ " frontmatterRaw" : undefined ,
1044
1075
" importChain" : [
1045
1076
{
1046
1077
" content" : " " ,
@@ -1150,6 +1181,8 @@ background: https://sli.dev/demo-cover.png#34
1150
1181
" background" : " https://sli.dev/demo-cover.png#34" ,
1151
1182
" layout" : " cover" ,
1152
1183
},
1184
+ " frontmatterRaw" : " layout: cover
1185
+ " ,
1153
1186
" importChain" : [
1154
1187
{
1155
1188
" content" : " " ,
@@ -1269,6 +1302,7 @@ layout: cover
1269
1302
" frontmatter" : {
1270
1303
" background" : " https://sli.dev/demo-cover.png#14" ,
1271
1304
},
1305
+ " frontmatterRaw" : undefined ,
1272
1306
" importChain" : [
1273
1307
{
1274
1308
" content" : " " ,
@@ -1546,6 +1580,8 @@ src: /sub/page1.md
1546
1580
" background" : " https://sli.dev/demo-cover.png#14" ,
1547
1581
" layout" : " cover" ,
1548
1582
},
1583
+ " frontmatterRaw" : " layout: cover
1584
+ " ,
1549
1585
" importChain" : [
1550
1586
{
1551
1587
" content" : " " ,
@@ -1846,6 +1882,7 @@ layout: cover
1846
1882
" frontmatter" : {
1847
1883
" background" : " https://sli.dev/demo-cover.png#14" ,
1848
1884
},
1885
+ " frontmatterRaw" : undefined ,
1849
1886
" importChain" : [
1850
1887
{
1851
1888
" content" : " " ,
@@ -2153,6 +2190,8 @@ src: ../sub/pages3-4.md
2153
2190
" background" : " https://sli.dev/demo-cover.png#14" ,
2154
2191
" layout" : " cover" ,
2155
2192
},
2193
+ " frontmatterRaw" : " layout: cover
2194
+ " ,
2156
2195
" importChain" : [
2157
2196
{
2158
2197
" content" : " " ,
@@ -2470,6 +2509,7 @@ layout: cover
2470
2509
2471
2510
$x + 2$ " ,
2472
2511
" frontmatter" : {},
2512
+ " frontmatterRaw" : undefined ,
2473
2513
" importChain" : undefined ,
2474
2514
" index" : 8 ,
2475
2515
" level" : 1 ,
0 commit comments