#Inside astro.config.ts, what type do I need to import

3 messages · Page 1 of 1 (latest)

sour cloud
#

Inside astro.config.ts, what type do I need to import to satisfy extendMarkdownConfig:

export default defineConfig({
  site: siteUrl,
  markdown: {
    extendMarkdownConfig: false,
}
})
eager merlinBOT
#

Hi @sour cloud. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

The extendMarkdownConfig option is part of the MDX configuration in Astro. It's a boolean type that determines whether MDX should extend your project's existing Markdown configuration. By default, it's set to true. If you want to disable this, you can set it to false as you did in your code.

However, your code seems to be missing the MDX integration part. Here's how you can properly set it up:

import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';

export default defineConfig({
  site: siteUrl,
  integrations: [
    mdx({
      extendMarkdownConfig: false,
    }),
  ],
});

In this code, we're importing defineConfig from astro/config and mdx from @astrojs/mdx. Then, we're using defineConfig to set up the Astro configuration. Inside the integrations array, we're configuring the MDX integration and setting extendMarkdownConfig to false.

For more information, you can refer to the Astro MDX Configuration Guide (https://docs.astro.build/en/guides/integrations-guide/mdx#extendmarkdownconfig).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: