diff --git a/.changeset/plenty-cows-act.md b/.changeset/plenty-cows-act.md new file mode 100644 index 000000000000..7b76a769d6c7 --- /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 7b82eb18a1fe..193f4c6f2912 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): import('astro').MarkdownInstance<{}>['Content']; + headings: import('astro').MarkdownHeading[]; }>; } }