Skip to content

Commit 6b4fcde

Browse files
authored
Fix: add headings to .mdoc render type (#7111)
* fix: add `headings` to `.mdoc` render type * chore: changeset
1 parent 4264b7c commit 6b4fcde

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

.changeset/plenty-cows-act.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@astrojs/markdoc': patch
3+
---
4+
5+
Fix: add `headings` to Markdoc `render()` return type.

packages/integrations/markdoc/template/content-module-types.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ declare module 'astro:content' {
22
interface Render {
33
'.mdoc': Promise<{
44
Content(props: Record<string, any>): import('astro').MarkdownInstance<{}>['Content'];
5+
headings: import('astro').MarkdownHeading[];
56
}>;
67
}
78
}

0 commit comments

Comments
 (0)