From dcfc4f5a8dabac913f316836e0ca0a426b1baf00 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 14 Nov 2026 11:14:56 +0100 Subject: [PATCH] =?UTF-8?q?Answer=20prose=20round=201:=200=20=F0=9F=94=B4,?= =?UTF-8?q?=200=20=F0=9F=9F=A1=20(0=20misread);=20the=20describe=20comment?= =?UTF-8?q?=20names=20what=20the=20refusal=20is=20for?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/markdown/emit/adf-to-markdown.test.ts | 3 +-- src/markdown/emit/adf-to-markdown.ts | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/markdown/emit/adf-to-markdown.test.ts b/src/markdown/emit/adf-to-markdown.test.ts index 64905c0..976b04e 100644 --- a/src/markdown/emit/adf-to-markdown.test.ts +++ b/src/markdown/emit/adf-to-markdown.test.ts @@ -237,7 +237,6 @@ test('separates blocks in a container body by a blank line only where a directiv assert.equal(markdown(adfToLosslessMarkdown(panel(paragraph(), text('a')))), '!adf:panel info\n!adf:paragraph\n!adf:/paragraph\na\n!adf:/panel\n') }) -test('describes the spelling of a node CommonMark spells, and none for a node it does not', () => { - assert.equal(describeCommonMarkSpelling(paragraph()), 'its text alone') +test('describes no spelling for a node CommonMark does not spell', () => { assert.equal(describeCommonMarkSpelling({ type: 'panel' }), undefined) }) diff --git a/src/markdown/emit/adf-to-markdown.ts b/src/markdown/emit/adf-to-markdown.ts index 0572baf..1e3422d 100644 --- a/src/markdown/emit/adf-to-markdown.ts +++ b/src/markdown/emit/adf-to-markdown.ts @@ -156,7 +156,7 @@ export function spellingMemo(): SpellingMemo { } type ReadableSpelling = { - // The lossless flavour's spelling in words, for the refusal of a directive that CommonMark spells. + // The lossless spelling in words, named when the reader refuses a directive written for a node CommonMark spells. describe: (node: AdfNode) => string spell: (node: AdfNode, path: ConvertErrorPath, depth: number, writing: Writing) => Result | undefined }