From 494b196f673ef6fd5c2048510e8aea77596c31d7 Mon Sep 17 00:00:00 2001 From: Dmitrii Vasilev Date: Sat, 22 Aug 2026 23:56:35 +0700 Subject: [PATCH] fix(blog): bold recurses, so a code span inside it renders too One Russian paragraph is a code span inside a bold span. The flat pass shipped an hour ago matches the bold first, `[^*]+` swallows the backticks, and the reader gets with the delimiters showing. Worth naming how it was missed rather than just fixing it: the sweep that declared the previous fix complete visited 31 posts in ENGLISH. The bodies exist in two languages. An English-only sweep over a bilingual corpus reads clean and covers half the pages -- the same narrower-than-stated scope this project keeps auditing its gates for. Now verified in both: 31 EN + 31 RU, zero literal delimiters outside code, with a control confirming the previously broken case renders as rather than passing because nothing was checked. --- apps/website/src/pages/Blog.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/website/src/pages/Blog.tsx b/apps/website/src/pages/Blog.tsx index 533758d354..4bd98ed851 100644 --- a/apps/website/src/pages/Blog.tsx +++ b/apps/website/src/pages/Blog.tsx @@ -159,7 +159,11 @@ function inline(text: string): React.ReactNode[] { while ((m = re.exec(text)) !== null) { if (m.index > last) out.push(text.slice(last, m.index)) if (m[1] !== undefined) { - out.push({m[1]}) + // Bold RECURSES: one Russian paragraph is a code span inside a bold + // span, and a flat pass matches the bold first, swallows the backticks + // and shows them. Found on 1 page of 62 -- and only because the sweep + // covered BOTH locales. The English-only sweep before it read clean. + out.push({inline(m[1])}) } else { out.push(