diff --git a/.changeset/hip-dancers-move.md b/.changeset/hip-dancers-move.md new file mode 100644 index 000000000..bcebddf5c --- /dev/null +++ b/.changeset/hip-dancers-move.md @@ -0,0 +1,6 @@ +--- +'astro': minor +'@astrojs/markdown-remark': patch +--- + +Speed up internal markdown builds with new vite-plugin markdown diff --git a/examples/docs/src/components/PageContent/PageContent.astro b/examples/docs/src/components/PageContent/PageContent.astro index e0d96b57c..9af4056c9 100644 --- a/examples/docs/src/components/PageContent/PageContent.astro +++ b/examples/docs/src/components/PageContent/PageContent.astro @@ -2,9 +2,8 @@ import MoreMenu from "../RightSidebar/MoreMenu.astro"; import TableOfContents from "../RightSidebar/TableOfContents"; -const { content, githubEditUrl } = Astro.props; +const { content, headings, githubEditUrl } = Astro.props; const title = content.title; -const headings = content.astro.headings; ---
@@ -29,9 +28,11 @@ const headings = content.astro.headings; display: flex; flex-direction: column; } - .content > section { + + .content>section { margin-bottom: 4rem; } + .block { display: block; } diff --git a/examples/docs/src/components/RightSidebar/RightSidebar.astro b/examples/docs/src/components/RightSidebar/RightSidebar.astro index c009d2202..71ad5e1c2 100644 --- a/examples/docs/src/components/RightSidebar/RightSidebar.astro +++ b/examples/docs/src/components/RightSidebar/RightSidebar.astro @@ -1,8 +1,7 @@ --- import TableOfContents from "./TableOfContents"; import MoreMenu from "./MoreMenu.astro"; -const { content, githubEditUrl } = Astro.props; -const headings = content.astro.headings; +const { content, headings, githubEditUrl } = Astro.props; ---