@astrojs/markdoc@0.9.5
版本发布时间: 2024-04-04 04:53:39
withastro/astro最新发布版本:astro@4.6.3(2024-04-18 23:38:04)
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 thepartial
tag with afile
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)