From 1088394001881dd5f0aa58f671501a048d7457aa Mon Sep 17 00:00:00 2001 From: Rhuan Barreto Date: Sun, 7 Jun 2026 21:24:19 +0200 Subject: [PATCH] fix(docs): restore GFM table rendering in MDX pages Astro 5+/6 removed remark-gfm from MDX processing by default, causing markdown tables to render as raw pipe-delimited text across all 98 MDX pages that use tables. Add remark-gfm as a direct dependency and enable it in the Astro markdown config. Signed-off-by: Rhuan Barreto --- docs/astro.config.mjs | 2 ++ docs/bun.lock | 1 + docs/package.json | 1 + 3 files changed, 4 insertions(+) diff --git a/docs/astro.config.mjs b/docs/astro.config.mjs index 3e5ca25f..101437ae 100644 --- a/docs/astro.config.mjs +++ b/docs/astro.config.mjs @@ -1,8 +1,10 @@ import starlight from "@astrojs/starlight"; import { defineConfig } from "astro/config"; +import remarkGfm from "remark-gfm"; export default defineConfig({ site: "https://cli.archgate.dev", + markdown: { remarkPlugins: [remarkGfm] }, integrations: [ starlight({ title: "Archgate", diff --git a/docs/bun.lock b/docs/bun.lock index f2f355de..faf6a986 100644 --- a/docs/bun.lock +++ b/docs/bun.lock @@ -8,6 +8,7 @@ "@astrojs/starlight": "^0.39.0", "astro": "^6.0.0", "posthog-js": "^1.368.2", + "remark-gfm": "^4.0.1", "sharp": "^0.34.1", }, }, diff --git a/docs/package.json b/docs/package.json index 55149dcc..e4b23d32 100644 --- a/docs/package.json +++ b/docs/package.json @@ -11,6 +11,7 @@ "@astrojs/starlight": "^0.39.0", "astro": "^6.0.0", "posthog-js": "^1.368.2", + "remark-gfm": "^4.0.1", "sharp": "^0.34.1" } }