diff options
Diffstat (limited to 'packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs')
-rw-r--r-- | packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs b/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs new file mode 100644 index 000000000..ada03f5f4 --- /dev/null +++ b/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs @@ -0,0 +1,28 @@ +import Code from './src/components/Code.astro'; +import CustomMarquee from './src/components/CustomMarquee.astro'; +import { defineMarkdocConfig } from '@astrojs/markdoc/config'; + +export default defineMarkdocConfig({ + nodes: { + fence: { + render: Code, + attributes: { + language: { type: String }, + content: { type: String }, + }, + }, + }, + tags: { + mq: { + render: CustomMarquee, + attributes: { + direction: { + type: String, + default: 'left', + matches: ['left', 'right', 'up', 'down'], + errorLevel: 'critical', + }, + }, + }, + }, +}) |