73fcc7627e
* fix: handle array of tree nodes * test: render null in document node * chore: lock * refactor: consolidate render test logic * chore: changeset
26 lines
415 B
JavaScript
26 lines
415 B
JavaScript
import { defineMarkdocConfig } from '@astrojs/markdoc/config';
|
|
|
|
export default defineMarkdocConfig({
|
|
nodes: {
|
|
document: {
|
|
render: null,
|
|
|
|
// Defaults from `Markdoc.nodes.document`
|
|
children: [
|
|
'heading',
|
|
'paragraph',
|
|
'image',
|
|
'table',
|
|
'tag',
|
|
'fence',
|
|
'blockquote',
|
|
'comment',
|
|
'list',
|
|
'hr',
|
|
],
|
|
attributes: {
|
|
frontmatter: { render: false },
|
|
},
|
|
}
|
|
}
|
|
})
|