Skip to content
Compare
Choose a tag to compare
@astrobot-houston astrobot-houston released this 03 Apr 20:53
· 1327 commits to main since this release
0899d34

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)