From 6f43c94da3d61baaabd7aaec8568e856668c0ebb Mon Sep 17 00:00:00 2001 From: Aaron Powell Date: Mon, 17 Aug 2026 15:11:05 +1000 Subject: [PATCH] fix(website): migrate markdown remark plugins to unified processor Astro 7 deprecates markdown.remarkPlugins in favour of passing a unified() processor from @astrojs/markdown-remark. Moves the GitHub admonitions plugin into markdown.processor, clearing the startup deprecation warning. shikiConfig stays at the markdown level as it is not part of UnifiedProcessorOptions. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 80686fef-efe3-4cdd-8cd6-bfa61a5d0af6 --- website/astro.config.mjs | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/website/astro.config.mjs b/website/astro.config.mjs index 8c0368d7..41a7b457 100644 --- a/website/astro.config.mjs +++ b/website/astro.config.mjs @@ -1,5 +1,6 @@ import sitemap from "@astrojs/sitemap"; import react from "@astrojs/react"; +import { unified } from "@astrojs/markdown-remark"; import fs from "node:fs"; import path from "node:path"; import { fileURLToPath } from "node:url"; @@ -45,9 +46,16 @@ export default defineConfig({ base: "/", output: "static", markdown: { - remarkPlugins: [ - [remarkGithubAdmonitionsToDirectives, { mapping: githubAdmonitionMapping }], - ], + // Astro 7 deprecated top-level `remarkPlugins`/`rehypePlugins`/ + // `remarkRehype` in favour of configuring the unified pipeline directly. + processor: unified({ + remarkPlugins: [ + [ + remarkGithubAdmonitionsToDirectives, + { mapping: githubAdmonitionMapping }, + ], + ], + }), // The prototype's own code blocks (SyntaxHighlightedCode.tsx) are styled // entirely through brand CSS tokens rather than baked-in theme colours, so // they automatically match the site's light/dark mode. Raw markdown code