diff options
-rw-r--r-- | .changeset/moody-spies-learn.md | 19 | ||||
-rw-r--r-- | examples/with-markdoc/package.json | 2 | ||||
-rw-r--r-- | packages/integrations/markdoc/CHANGELOG.md | 20 | ||||
-rw-r--r-- | packages/integrations/markdoc/package.json | 2 | ||||
-rw-r--r-- | pnpm-lock.yaml | 2 |
5 files changed, 23 insertions, 22 deletions
diff --git a/.changeset/moody-spies-learn.md b/.changeset/moody-spies-learn.md deleted file mode 100644 index dbd0be539..000000000 --- a/.changeset/moody-spies-learn.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -"@astrojs/markdoc": patch ---- - -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: - -```md -<!--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.` - - -``` diff --git a/examples/with-markdoc/package.json b/examples/with-markdoc/package.json index ff5fe8bca..1fc5381a8 100644 --- a/examples/with-markdoc/package.json +++ b/examples/with-markdoc/package.json @@ -11,7 +11,7 @@ "astro": "astro" }, "dependencies": { - "@astrojs/markdoc": "^0.9.4", + "@astrojs/markdoc": "^0.9.5", "astro": "^4.5.15" } } diff --git a/packages/integrations/markdoc/CHANGELOG.md b/packages/integrations/markdoc/CHANGELOG.md index a139c78d3..53b68a9eb 100644 --- a/packages/integrations/markdoc/CHANGELOG.md +++ b/packages/integrations/markdoc/CHANGELOG.md @@ -1,5 +1,25 @@ # @astrojs/markdoc +## 0.9.5 + +### Patch Changes + +- [#10649](https://github.com/withastro/astro/pull/10649) [`90cfade88c2b9a34d8a5fe711ce329732d690409`](https://github.com/withastro/astro/commit/90cfade88c2b9a34d8a5fe711ce329732d690409) Thanks [@bholmesdev](https://github.com/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: + + ```md + <!--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.` + +  + ``` + ## 0.9.4 ### Patch Changes diff --git a/packages/integrations/markdoc/package.json b/packages/integrations/markdoc/package.json index ba6c7b360..d67001e75 100644 --- a/packages/integrations/markdoc/package.json +++ b/packages/integrations/markdoc/package.json @@ -1,7 +1,7 @@ { "name": "@astrojs/markdoc", "description": "Add support for Markdoc in your Astro site", - "version": "0.9.4", + "version": "0.9.5", "type": "module", "types": "./dist/index.d.ts", "author": "withastro", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 212870d05..99bfc70f5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -396,7 +396,7 @@ importers: examples/with-markdoc: dependencies: '@astrojs/markdoc': - specifier: ^0.9.4 + specifier: ^0.9.5 version: link:../../packages/integrations/markdoc astro: specifier: ^4.5.15 |