@@ -26,7 +26,7 @@ The preparser (step 1 above) is highly extensible and allows you to implement cu
2626
2727To customize it, create a ` ./setup/preparser.ts ` file with the following content:
2828
29- ``` ts twoslash
29+ ``` ts twoslash [./setup/preparser.ts]
3030import { definePreparserSetup } from ' @slidev/types'
3131
3232export default definePreparserSetup (({ filepath , headmatter , mode }) => {
@@ -76,7 +76,7 @@ see you next time
7676
7777To allow these ` @src: ` and ` @cover: ` syntaxes, create a ` ./setup/preparser.ts ` file with the following content:
7878
79- ``` ts twoslash
79+ ``` ts twoslash [./setup/preparser.ts]
8080import { definePreparserSetup } from ' @slidev/types'
8181
8282export default definePreparserSetup (() => {
@@ -157,7 +157,7 @@ Here we used an underscore in `_scale` to avoid possible conflicts with existing
157157
158158To handle this ` _scale: ... ` syntax in the frontmatter, create a ` ./setup/preparser.ts ` file with the following content:
159159
160- ``` ts twoslash
160+ ``` ts twoslash [./setup/preparser.ts]
161161import { definePreparserSetup } from ' @slidev/types'
162162
163163export default definePreparserSetup (() => {
@@ -207,7 +207,7 @@ Here we used an underscore in `_note` to avoid possible conflicts with existing
207207
208208To handle this ` _note: ... ` syntax in the frontmatter, create a ` ./setup/preparser.ts ` file with the following content:
209209
210- ``` ts twoslash
210+ ``` ts twoslash [./setup/preparser.ts]
211211import fs , { promises as fsp } from ' node:fs'
212212import { definePreparserSetup } from ' @slidev/types'
213213
0 commit comments