diff options
Diffstat (limited to 'packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts')
-rw-r--r-- | packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts b/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts index ada03f5f4..b7845d182 100644 --- a/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts +++ b/packages/integrations/markdoc/test/fixtures/render-with-components/markdoc.config.ts @@ -1,11 +1,9 @@ -import Code from './src/components/Code.astro'; -import CustomMarquee from './src/components/CustomMarquee.astro'; -import { defineMarkdocConfig } from '@astrojs/markdoc/config'; +import { defineMarkdocConfig, component } from '@astrojs/markdoc/config'; export default defineMarkdocConfig({ nodes: { fence: { - render: Code, + render: component('./src/components/Code.astro'), attributes: { language: { type: String }, content: { type: String }, @@ -14,7 +12,7 @@ export default defineMarkdocConfig({ }, tags: { mq: { - render: CustomMarquee, + render: component('./src/components/CustomMarquee.astro'), attributes: { direction: { type: String, |