diff --git a/.changeset/young-radios-call.md b/.changeset/young-radios-call.md new file mode 100644 index 000000000..754c363a9 --- /dev/null +++ b/.changeset/young-radios-call.md @@ -0,0 +1,6 @@ +--- +'astro': patch +'@astrojs/markdown-remark': minor +--- + +**BREAKING** Renamed Markdown utility function `getHeaders()` to `getHeadings()`. diff --git a/examples/docs/src/components/PageContent/PageContent.astro b/examples/docs/src/components/PageContent/PageContent.astro index 1d14515c1..11c130b05 100644 --- a/examples/docs/src/components/PageContent/PageContent.astro +++ b/examples/docs/src/components/PageContent/PageContent.astro @@ -4,14 +4,14 @@ import TableOfContents from "../RightSidebar/TableOfContents.tsx"; const { content, githubEditUrl } = Astro.props; const title = content.title; -const headers = content.astro.headers; +const headings = content.astro.headings; ---

{title}

diff --git a/examples/docs/src/components/RightSidebar/MoreMenu.astro b/examples/docs/src/components/RightSidebar/MoreMenu.astro index a78f86d59..9b0e426cf 100644 --- a/examples/docs/src/components/RightSidebar/MoreMenu.astro +++ b/examples/docs/src/components/RightSidebar/MoreMenu.astro @@ -8,7 +8,7 @@ const showMoreSection = CONFIG.COMMUNITY_INVITE_URL || editHref; {showMoreSection &&

More

}