Skip to content

Commit

Permalink
Reinstate code sample changes
Browse files Browse the repository at this point in the history
  • Loading branch information
delucis committed Jan 31, 2023
1 parent 5945693 commit e20bd57
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions packages/integrations/mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ npm install @astrojs/mdx

Then, apply this integration to your `astro.config.*` file using the `integrations` property:

**`astro.config.mjs`**
__`astro.config.mjs`__

```js
```js ins={2} "mdx()"
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';

Expand Down Expand Up @@ -92,8 +92,9 @@ All [`markdown` configuration options](https://docs.astro.build/en/reference/con
There is no separate MDX configuration for [including pages marked as draft in the build](https://docs.astro.build/en/reference/configuration-reference/#markdowndrafts). This Markdown setting will be respected by both Markdown and MDX files and cannot be overridden for MDX files specifically.
:::

```ts
// astro.config.mjs
__`astro.config.mjs`__

```js
import { defineConfig } from 'astro/config';
import mdx from '@astrojs/mdx';
import remarkToc from 'remark-toc';
Expand Down Expand Up @@ -128,8 +129,9 @@ MDX will extend [your project's existing Markdown configuration](https://docs.as

For example, say you need to disable GitHub-Flavored Markdown and apply a different set of remark plugins for MDX files. You can apply these options like so, with `extendMarkdownConfig` enabled by default:

```ts
// astro.config.mjs
__`astro.config.mjs`__

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

Expand All @@ -155,8 +157,9 @@ export default defineConfig({

You may also need to disable `markdown` config extension in MDX. For this, set `extendMarkdownConfig` to `false`:

```ts
// astro.config.mjs
__`astro.config.mjs`__

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

Expand Down

0 comments on commit e20bd57

Please sign in to comment.