3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 14:15:44 +01:00

Answer prose round 1: 0 🔴, 0 🟡 (0 misread); the describe comment names what the refusal is for

This commit is contained in:
2026-11-14 11:14:56 +01:00
committed by Lillem4n
parent 8095a7668b
commit dcfc4f5a8d
2 changed files with 2 additions and 3 deletions
+1 -2
View File
@@ -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)
})
+1 -1
View File
@@ -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<EmittedBlock> | undefined
}