diff options
author | 2023-05-17 16:35:48 -0400 | |
---|---|---|
committer | 2023-05-17 16:35:48 -0400 | |
commit | 6b4fcde3760140733ad03a162dd0682004c106b2 (patch) | |
tree | 0758913044afddc917e546ef83fcb8a784ea50e3 | |
parent | 4264b7c564ff403333d065bd466230a401a49754 (diff) | |
download | astro-6b4fcde3760140733ad03a162dd0682004c106b2.tar.gz astro-6b4fcde3760140733ad03a162dd0682004c106b2.tar.zst astro-6b4fcde3760140733ad03a162dd0682004c106b2.zip |
Fix: add `headings` to `.mdoc` render type (#7111)
* fix: add `headings` to `.mdoc` render type
* chore: changeset
Diffstat (limited to '')
-rw-r--r-- | .changeset/plenty-cows-act.md | 5 | ||||
-rw-r--r-- | packages/integrations/markdoc/template/content-module-types.d.ts | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/.changeset/plenty-cows-act.md b/.changeset/plenty-cows-act.md new file mode 100644 index 000000000..7b76a769d --- /dev/null +++ b/.changeset/plenty-cows-act.md @@ -0,0 +1,5 @@ +--- +'@astrojs/markdoc': patch +--- + +Fix: add `headings` to Markdoc `render()` return type. diff --git a/packages/integrations/markdoc/template/content-module-types.d.ts b/packages/integrations/markdoc/template/content-module-types.d.ts index 7b82eb18a..193f4c6f2 100644 --- a/packages/integrations/markdoc/template/content-module-types.d.ts +++ b/packages/integrations/markdoc/template/content-module-types.d.ts @@ -2,6 +2,7 @@ declare module 'astro:content' { interface Render { '.mdoc': Promise<{ Content(props: Record<string, any>): import('astro').MarkdownInstance<{}>['Content']; + headings: import('astro').MarkdownHeading[]; }>; } } |