0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2025-02-03 22:29:08 -05:00
astro/packages/db/components/Renderer.astro

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
314 B
Text
Raw Normal View History

2024-01-08 09:22:40 -05:00
---
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={{}} />