0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-01-06 22:10:10 -05:00
astro/packages/db/components/Renderer.astro
2024-01-24 16:29:45 -06:00

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={{}} />