astro/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.mjs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
567 B
JavaScript
Raw Normal View History

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',
},
},
},
},
})