Skip to content

@astrojs/starlight@0.23.0

Compare
Choose a tag to compare
@astrobot-houston astrobot-houston released this 17 May 16:58
· 53 commits to main since this release
8f22a97

Minor Changes

  • #1846 2de67039 Thanks @delucis! - Updates @astrojs/mdx to v3 and enables MDX optimization by default

    鈿狅笍 Potentially breaking change: MDX optimization speeds up builds (Starlight鈥檚 docs are building ~40% faster for example), but restricts some advanced MDX features. See full details in the MDX optimization documentation.

    Most Starlight users should be unaffected, but if you are using MDX files outside of Starlight pages with the components prop, you may see issues. You can disable optimization by adding MDX manually to your integrations array in astro.config.mjs:

    import { defineConfig } from 'astro/config';
    + import mdx from '@astrojs/mdx';
    import starlight from '@astrojs/starlight';
    
    // https://astro.build/config
    export default defineConfig({
    	integrations: [
    		starlight({
    			title: 'My docs',
    			// ...
    		}),
    +		mdx(),
    	],
    });
  • #1735 1a9ab50d Thanks @HiDeoo! - Adds custom styles for <details> and <summary> elements in Markdown content.

  • #1846 2de67039 Thanks @delucis! - 鈿狅笍 BREAKING CHANGE: The minimum supported version of Astro is now 4.8.6

    Please update Astro and Starlight together:

    npx @astrojs/upgrade