summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Ben Holmes <hey@bholmes.dev> 2023-05-17 16:35:48 -0400
committerGravatar GitHub <noreply@github.com> 2023-05-17 16:35:48 -0400
commit6b4fcde3760140733ad03a162dd0682004c106b2 (patch)
tree0758913044afddc917e546ef83fcb8a784ea50e3
parent4264b7c564ff403333d065bd466230a401a49754 (diff)
downloadastro-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.md5
-rw-r--r--packages/integrations/markdoc/template/content-module-types.d.ts1
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[];
}>;
}
}