If you want to get a list of all .markdoc files in a directory, for example in a blog you want to list all posts, you can use the import.meta.glob function.
experimentalThe preprocessor automatically generates a schema file at .svelte-kit/markdoc_schema.js which can be used with the official Visual Studio Code Extension.
In the markdoc.config.json configuration file point to the schema file:
You can configure the underlying Markdoc compiler by passing a configuration object.