diff --git a/packages/integrations/markdoc/components/astroNode.ts b/packages/integrations/markdoc/components/astroNode.ts index bd7bc5e03..5924bcb2e 100644 --- a/packages/integrations/markdoc/components/astroNode.ts +++ b/packages/integrations/markdoc/components/astroNode.ts @@ -39,6 +39,12 @@ export function createAstroNode( props, children, }; + } else if (isCapitalized(node.name)) { + throw new Error( + `[Markdoc] Unable to render ${JSON.stringify( + node.name + )}. Did you add this to the "components" prop on your component?` + ); } else { return { tag: node.name,