mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
29 lines
567 B
TypeScript
29 lines
567 B
TypeScript
|
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',
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
},
|
||
|
})
|