From 25a11d9864aefcab48bc06726e8b290dcb09d5b2 Mon Sep 17 00:00:00 2001 From: Chris Tate Date: Tue, 20 Oct 2026 18:08:33 -0500 Subject: [PATCH] Check that the limitations partials keep one sentence per line The Limitations page partials keep one sentence per line so edits to different sentences merge, but AGENTS.md's general Markdown rule asks for paragraphs on one line, and changes that followed it conflicted with the split text. AGENTS.md now names the partials as the exception, and limitations-partials.mjs gains a check, run by pnpm lint, that fails on a partial line holding two sentences, and a fix mode that splits such lines. The one partial that held several sentences per line is split; Markdown joins the lines, so the page renders the same. --- AGENTS.md | 4 +- .../limitations/unix-domain-sockets.mdx | 9 ++- docs/scripts/limitations-partials.mjs | 56 ++++++++++++++++++- package.json | 2 +- 4 files changed, 64 insertions(+), 7 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index ba32fe688..a7741b503 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -4,7 +4,7 @@ This is the only agent guide for the repository. Its rules apply everywhere, inc ## Markdown style -Write prose paragraphs and list items as single source lines and let editors and renderers wrap them naturally. Do not hard-wrap Markdown at a fixed column; preserve separate lines only where Markdown syntax or intentional formatting requires them, such as headings, lists, tables, blockquotes, and code blocks. +Write prose paragraphs and list items as single source lines and let editors and renderers wrap them naturally. Do not hard-wrap Markdown at a fixed column; preserve separate lines only where Markdown syntax or intentional formatting requires them, such as headings, lists, tables, blockquotes, and code blocks. The Limitations page partials under `docs/content/limitations/` are the exception: they keep one sentence per line (see Limitations page partials). ## Build and test @@ -196,7 +196,7 @@ The docs site is a standalone pnpm workspace under `docs/`. It uses Next.js App - A labeled bullet (`- **Crypto:** ...`) is `docs/content/limitations/
/