Skip to content

Commit

Permalink
Fix: add headings to .mdoc render type (#7111)
Browse files Browse the repository at this point in the history
* fix: add `headings` to `.mdoc` render type

* chore: changeset
  • Loading branch information
bholmesdev authored May 17, 2023
1 parent 4264b7c commit 6b4fcde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/plenty-cows-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@astrojs/markdoc': patch
---

Fix: add `headings` to Markdoc `render()` return type.
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
}>;
}
}

0 comments on commit 6b4fcde

Please sign in to comment.