summaryrefslogtreecommitdiff
path: root/packages/integrations/markdoc/src
diff options
context:
space:
mode:
authorGravatar HiDeoo <494699+HiDeoo@users.noreply.github.com> 2024-08-27 17:49:04 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-27 16:49:04 +0100
commited7bbd990f80cacf9c5ec2a70ad7501631b92d3f (patch)
tree5b24197d9c1d7aecdf212faea61ae8030c5f7fd3 /packages/integrations/markdoc/src
parent543e8f5b78035b8457445845dd5fcfe323f107db (diff)
downloadastro-ed7bbd990f80cacf9c5ec2a70ad7501631b92d3f.tar.gz
astro-ed7bbd990f80cacf9c5ec2a70ad7501631b92d3f.tar.zst
astro-ed7bbd990f80cacf9c5ec2a70ad7501631b92d3f.zip
fix(markdoc): use astro components defined with `extends` (#11846)
Diffstat (limited to 'packages/integrations/markdoc/src')
-rw-r--r--packages/integrations/markdoc/src/content-entry-type.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/markdoc/src/content-entry-type.ts b/packages/integrations/markdoc/src/content-entry-type.ts
index 791def315..303251d66 100644
--- a/packages/integrations/markdoc/src/content-entry-type.ts
+++ b/packages/integrations/markdoc/src/content-entry-type.ts
@@ -78,13 +78,13 @@ export async function getContentEntryType({
// Only include component imports for tags used in the document.
// Avoids style and script bleed.
for (const tag of usedTags) {
- const render = userMarkdocConfig.tags?.[tag]?.render;
+ const render = markdocConfig.tags?.[tag]?.render;
if (isComponentConfig(render)) {
componentConfigByTagMap[tag] = render;
}
}
let componentConfigByNodeMap: Record<string, ComponentConfig> = {};
- for (const [nodeType, schema] of Object.entries(userMarkdocConfig.nodes ?? {})) {
+ for (const [nodeType, schema] of Object.entries(markdocConfig.nodes ?? {})) {
const render = schema?.render;
if (isComponentConfig(render)) {
componentConfigByNodeMap[nodeType] = render;