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:
@@ -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)
|
||||
})
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user