summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs
blob: ada03f5f45211f8d95696cefc0e7cb41bf0108b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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',
				},
			},
		},
	},
})