diff --git a/packages/integrations/markdoc/components/Renderer.astro b/packages/integrations/markdoc/components/Renderer.astro index 4a78fda95..4fce72b04 100644 --- a/packages/integrations/markdoc/components/Renderer.astro +++ b/packages/integrations/markdoc/components/Renderer.astro @@ -7,13 +7,15 @@ import RenderNode from './RenderNode.astro'; type Props = { content: RenderableTreeNode; - components: Record; + components?: Record; }; const { content, components } = Astro.props as Props; // Will throw if components is invalid -validateComponentsProp(components); +if (components) { + validateComponentsProp(components); +} ---