You can define layouts in the markdoc options.
Layout files are basically Svelte components that render the children snippet. It is used for all files by default.
If you want to use a named layout for a specific file, you can specify it in the frontmatter.
Layouts will be passed the frontmatter as props from the Markdoc file.