github withastro/astro @astrojs/mdx@0.14.0

latest releases: astro@4.9.2, @astrojs/upgrade@0.3.1, astro@4.9.1...
17 months ago

Minor Changes

  • #5654 2c65b433b Thanks @delucis! - Run heading ID injection after user plugins

    ⚠️ BREAKING CHANGE ⚠️

    If you are using a rehype plugin that depends on heading IDs injected by Astro, the IDs will no longer be available when your plugin runs by default.

    To inject IDs before your plugins run, import and add the rehypeHeadingIds plugin to your rehypePlugins config:

    // astro.config.mjs
    + import { rehypeHeadingIds } from '@astrojs/markdown-remark';
    import mdx from '@astrojs/mdx';
    
    export default {
      integrations: [mdx()],
      markdown: {
        rehypePlugins: [
    +     rehypeHeadingIds,
          otherPluginThatReliesOnHeadingIDs,
        ],
      },
    }

Patch Changes

Don't miss a new astro release

NewReleases is sending notifications on new releases.