3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-19 06:35:44 +01:00

Answer stability round 1: 0 🔴, 2 🟡; a mark's malformed attrs name their cause, the docs name a value of the wrong type as a fallback

This commit is contained in:
2026-10-14 10:23:56 +02:00
committed by Lillem4n
parent 8188bc5e16
commit 168ca1cea2
9 changed files with 24 additions and 22 deletions
@@ -431,7 +431,6 @@ test('refuses marks and attributes nested deeper than the emitter carries', () =
const markedCode: AdfNode = { content: [{ text: 'x', type: 'text' }], marks: [{ attrs: { deep: nested(largestNesting - 2) }, type: 'em' }], type: 'codeBlock' }
assert.equal(markdown(adfToLosslessMarkdown(document(markedCode))), deeper('marks', 'codeBlock'))
roundTrips(marked(largestNesting - 3))
roundTrips({ ...marked(0), marks: [{ attrs: { sources: nested(largestNesting) }, type: 'dataConsumer' }] })
})
test('escapes a literal delimiter that would merge with an emitted one', () => {