mirror of
https://github.com/withastro/astro.git
synced 2025-01-06 22:10:10 -05:00
14 lines
314 B
Text
14 lines
314 B
Text
---
|
|
import { Renderer as MarkdocRenderer } from '@astrojs/markdoc/components';
|
|
import { Markdoc } from '@astrojs/markdoc/config';
|
|
|
|
interface Props {
|
|
content: string;
|
|
}
|
|
|
|
const { content } = Astro.props;
|
|
|
|
const ast = Markdoc.parse(content);
|
|
---
|
|
|
|
<MarkdocRenderer stringifiedAst={JSON.stringify(ast)} config={{}} />
|