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 }