| commit 3f716c554ff7c413ee8a0aefc2093621b684c6df parent effa6f1ff24968ff0afee7ef30d4196e59951f52 Author: sqzer <110329244+sqzer-x@users.noreply.github.com> Date: Fri, 25 Sep 2026 03:42:43 +0900 fix: keep the text between --- rules in excerpts plain() stripped the first span between two --- lines as if it were front matter, but post.body never carries front matter: Astro removes it before the page sees the body. What the regex matched was the post's own horizontal rules, so a post whose opening paragraph sat between two rules got its meta description and feed summary from the paragraph after. The existing posts build byte-identical. Diffstat:
|
| 1 file changed, 0 insertion(+), 1 deletion(-) |
diff --git a/src/lib/prose.ts b/src/lib/prose.ts @@ -10,7 +10,6 @@ /** Excluded from length and shape measurements: code fences, images, tables, link URLs. */ function plain(md: string): string { return md - .replace(/^---[\s\S]*?^---/m, '') .replace(/```[\s\S]*?```/g, '') .replace(/!\[[^\]]*\]\([^)]*\)/g, '') .replace(/^\s*\|.*$/gm, '') |