diff options
author | 2024-08-28 17:25:13 +0200 | |
---|---|---|
committer | 2024-08-28 17:25:13 +0200 | |
commit | 68601a954907ef77470e7a5cf9d4c8ff89fe2c99 (patch) | |
tree | 38c4cf4836b9876cb2b093efb5a1a3c193719179 /packages/integrations/markdoc/src | |
parent | 93932432e7239a1d31c68ea916945302286268e9 (diff) | |
parent | 26893f9a356e49c5c49052bd36f8b2e7e04edf4d (diff) | |
download | astro-68601a954907ef77470e7a5cf9d4c8ff89fe2c99.tar.gz astro-68601a954907ef77470e7a5cf9d4c8ff89fe2c99.tar.zst astro-68601a954907ef77470e7a5cf9d4c8ff89fe2c99.zip |
Merge branch 'main' into next
Diffstat (limited to 'packages/integrations/markdoc/src')
-rw-r--r-- | packages/integrations/markdoc/src/content-entry-type.ts | 4 | ||||
-rw-r--r-- | packages/integrations/markdoc/src/runtime.ts | 2 |
2 files changed, 3 insertions, 3 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; diff --git a/packages/integrations/markdoc/src/runtime.ts b/packages/integrations/markdoc/src/runtime.ts index 31ddf4c64..f62bcec1a 100644 --- a/packages/integrations/markdoc/src/runtime.ts +++ b/packages/integrations/markdoc/src/runtime.ts @@ -7,7 +7,7 @@ import Markdoc, { } from '@markdoc/markdoc'; import type { AstroInstance } from 'astro'; import { createComponent, renderComponent } from 'astro/runtime/server/index.js'; -import { type AstroMarkdocConfig } from './config.js'; +import type { AstroMarkdocConfig } from './config.js'; import { setupHeadingConfig } from './heading-ids.js'; import { htmlTag } from './html/tagdefs/html.tag.js'; import type { MarkdocIntegrationOptions } from './options.js'; |