github withastro/astro @astrojs/markdoc@0.3.0

latest releases: astro@5.0.0-beta.2, @astrojs/vue@5.0.0-beta.0, @astrojs/svelte@6.0.0-beta.0...
16 months ago

Minor Changes

  • #7244 bef3a75db Thanks @bholmesdev! - Remove the auto-generated $entry variable for Markdoc entries. To access frontmatter as a variable, you can pass entry.data as a prop where you render your content:

    ---
    import { getEntry } from 'astro:content';
    
    const entry = await getEntry('docs', 'why-markdoc');
    const { Content } = await entry.render();
    ---
    
    <Content frontmatter={entry.data} />

Patch Changes

Don't miss a new astro release

NewReleases is sending notifications on new releases.