From 0f9b6bc80060dff614bd112889a43dad10e3fcb3 Mon Sep 17 00:00:00 2001 From: Nathan Rover Date: Wed, 29 Jul 2026 15:35:03 -0400 Subject: [PATCH 1/2] Disable compressHTML: it ate spaces at inline-tag boundaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Astro's default compressHTML removes the newline+indent when a line break sits next to an inline tag, so source like "lives in\n catalog.json" rendered as "lives incatalog.json". A build-output grep found the joined-word artifact on every page: the footer on all 10 pages, plus index ("events.Storage Core"), examples ("fixturesource"), skill, stack, roadmap, and staff pages. Turning compression off fixes the class instead of policing every line break next to an //. Cost is negligible once Cloudflare compresses the response: 27.3 KB -> 28.9 KB gzipped across all 10 pages (raw 80.4 KB -> 99.5 KB). Verified: rebuilt and re-grepped dist/ for texttext joins (zero matches); npm run check is clean. Co-Authored-By: Claude Fable 5 --- astro.config.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/astro.config.mjs b/astro.config.mjs index 5274544..97ccfaf 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,6 +4,12 @@ import { defineConfig } from 'astro/config'; export default defineConfig({ site: 'https://pegma.dev', trailingSlash: 'never', + // compressHTML eats the newline+indent at text↔inline-tag boundaries, so + // source like "lives in\n catalog.json" rendered as + // "lives incatalog.json". Serving uncompressed HTML (Cloudflare applies + // gzip/brotli anyway) fixes the whole class instead of policing every + // line break next to an //. + compressHTML: false, build: { // Emit /stack.html rather than /stack/index.html so Pages serves // /stack directly — no 308 to a trailing-slash URL, and the served From eedf2063aac063d2a6fa77bada1606dc962da75e Mon Sep 17 00:00:00 2001 From: Fly Over Coder Date: Wed, 29 Jul 2026 15:48:03 -0400 Subject: [PATCH 2/2] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- astro.config.mjs | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 97ccfaf..7d248f7 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -4,11 +4,10 @@ import { defineConfig } from 'astro/config'; export default defineConfig({ site: 'https://pegma.dev', trailingSlash: 'never', - // compressHTML eats the newline+indent at text↔inline-tag boundaries, so - // source like "lives in\n catalog.json" rendered as - // "lives incatalog.json". Serving uncompressed HTML (Cloudflare applies - // gzip/brotli anyway) fixes the whole class instead of policing every - // line break next to an //. + // compressHTML removes boundary whitespace around inline elements (e.g. newline+indent between text and ), so + // source like "lives in\n catalog.json" can render as "lives incatalog.json". + // Disabling HTML minification here avoids having to police line breaks next to inline tags; + // Cloudflare still applies gzip/brotli at the edge. compressHTML: false, build: { // Emit /stack.html rather than /stack/index.html so Pages serves