3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-21 15:42:58 +01:00

Answer stability round 1: 0 🔴, 3 🟡 (0 misread); refuse a seeded carry on a portable line, say what undefined means

This commit is contained in:
2026-10-31 02:50:23 +01:00
committed by Lillem4n
parent 97bd801c58
commit 6d09da68c7
3 changed files with 8 additions and 5 deletions
@@ -416,8 +416,10 @@ test('gives up every highlight run whose own delimiter cannot flank in one fallb
})
test('refuses a portable line holding a node only the carry spells, at the line', () => {
const refused = portableLineFallback([text('x', { attrs: { a: 1 }, type: 'em' })], 'paragraph', ['content', 0])
assert.deepEqual(refused.ok ? refused : [refused.error.code, refused.error.path], ['unsupported-node-shape', ['content', 0]])
for (const mark of [{ attrs: { a: 1 }, type: 'em' }, { type: 'odd' }]) {
const refused = portableLineFallback([text('x', mark)], 'paragraph', ['content', 0])
assert.deepEqual(refused.ok ? refused : [refused.error.code, refused.error.path], ['unsupported-node-shape', ['content', 0]])
}
})
test('breaks a line at a newline and trims whitespace at every edge CommonMark strips', () => {