From 673121ac8a6577940a977222b38d9b788e22d7d4 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 9 Nov 2026 00:36:20 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20stability=20round=201:=200=20?= =?UTF-8?q?=F0=9F=94=B4,=201=20=F0=9F=9F=A1=20(0=20misread);=20write=20a?= =?UTF-8?q?=20hostile=20fence=20whose=20info=20string=20holds=20a=20backti?= =?UTF-8?q?ck=20with=20tildes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/conformance/markdown-property.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/conformance/markdown-property.test.ts b/src/conformance/markdown-property.test.ts index 00137c7..ee58051 100644 --- a/src/conformance/markdown-property.test.ts +++ b/src/conformance/markdown-property.test.ts @@ -197,7 +197,8 @@ const hostileBlockCarry = fc .map(([[type, untyped], named, body, spelling, other]) => { const value = body === 'untyped' ? untyped : body === 'typed' ? { ...untyped, type } : other const json = spelling === 'canonical' ? serializeCanonicalJson(value, 'two-space') : spelling === 'compact' ? JSON.stringify(value) : JSON.stringify(value, null, 1) - return fencedCodeBlock(`${carryFencePrefix}${named ?? type}`, json) + const info = `${carryFencePrefix}${named ?? type}` + return info.includes('`') ? `~~~${info}\n${json}\n~~~` : fencedCodeBlock(info, json) }) function prefixLines(body: string, first: string, rest: (index: number) => string): string {