You can pass the configuration to the preprocessor in the svelte.config.js
like this:
extensions
Type: string[]
Default: ['.markdoc', '.mdoc', '.markdown', '.md']
Extensions to be processed.
nodes
Type: string | null
Default: null
Absoulute path to the .svelte
file exporting components for nodes.
Type: string | null
Default: null
Absoulute path to the .svelte
file exporting components for tags.
Type: string
Default: null
Absoulute path to the folder for partials.
Type: boolean
Default: true
Generate schema files under ./svelte-kit/markdoc-schema.json
to be used with the official Visual Studio Code extension.
Type: Record<string, string> | null
Default: null
Layouts to be used for pages.
Type: "error" | "debug" | "info" | "warning" | "critical"
Default: error
The threshold for validation errors to stop the build.
Type: boolean
Default: false
Allow comments in the markdown files.