mirror of
https://github.com/withastro/astro.git
synced 2025-02-03 22:29:08 -05:00
15 lines
314 B
Text
15 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={{}} />
|