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:
parent
4264b7c564
commit
6b4fcde376
2 changed files with 6 additions and 0 deletions
5
.changeset/plenty-cows-act.md
Normal file
5
.changeset/plenty-cows-act.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'@astrojs/markdoc': patch
|
||||
---
|
||||
|
||||
Fix: add `headings` to Markdoc `render()` return type.
|
|
@ -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[];
|
||||
}>;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue