mirror of
https://github.com/withastro/astro.git
synced 2025-02-17 22:44:24 -05:00
15 lines
391 B
Text
15 lines
391 B
Text
|
---
|
||
|
import type { RenderableTreeNode } from '@markdoc/markdoc';
|
||
|
import { ComponentRenderer, createAstroNode } from './astroNode';
|
||
|
import RenderNode from './RenderNode.astro';
|
||
|
|
||
|
type Props = {
|
||
|
content: RenderableTreeNode;
|
||
|
components: Record<string, ComponentRenderer>;
|
||
|
};
|
||
|
|
||
|
const { content, components } = Astro.props as Props;
|
||
|
---
|
||
|
|
||
|
<RenderNode node={createAstroNode(content, components)} />
|