mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
a11b62ee1f
* fix: config, prism, shiki exports * fix: type error for `render` property * chore: use `.ts` files in select tests for type checks * fix: type error on shiki() promise * chore: changeset
28 lines
567 B
TypeScript
28 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',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
})
|