github withastro/astro @astrojs/markdoc@0.9.5

latest releases: astro@4.15.8, @astrojs/mdx@3.1.7, astro@4.15.7...
5 months ago

Patch Changes

  • #10649 90cfade88c2b9a34d8a5fe711ce329732d690409 Thanks @bholmesdev! - Add automatic resolution for Markdoc partials. This allows you to render other Markdoc files inside of a given entry. Reference files using the partial tag with a file attribute for the relative file path:

    <!--src/content/blog/post.mdoc-->
    
    {% partial file="my-partials/_diagram.mdoc" /%}
    
    <!--src/content/blog/my-partials/_diagram.mdoc-->
    
    ## Diagram
    
    This partial will render inside of `post.mdoc.`
    
    ![Diagram](./diagram.png)

Don't miss a new astro release

NewReleases is sending notifications on new releases.