0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-16 21:46:22 -05:00

Fix: add headings to .mdoc render type (#7111)

* fix: add `headings` to `.mdoc` render type

* chore: changeset
This commit is contained in:
Ben Holmes 2023-05-17 16:35:48 -04:00 committed by GitHub
parent 4264b7c564
commit 6b4fcde376
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/markdoc': patch
---
Fix: add `headings` to Markdoc `render()` return type.

View file

@ -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[];
}>;
}
}