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

Answer the architecture review: the claim rides a block, and the path comes from the node layer

This commit is contained in:
2026-08-27 23:39:06 +02:00
parent ccf5403813
commit 087952555d
8 changed files with 95 additions and 83 deletions
@@ -107,6 +107,7 @@ test('refuses the raw HTML no element mapping carries', () => {
assert.equal(code(markdownToAdf('<pre>\nx\n</pre>\n')), 'unmappable-html')
assert.equal(code(markdownToAdf('<span foo="bar">\n')), 'unmappable-html')
assert.deepEqual(path(markdownToAdf('Part.\n\n<div>\n')), ['content', 1])
assert.equal(code(markdownToAdf('<div>\nx\n\n:::\n')), 'unmappable-html')
})
test('swallows an HTML block ahead of the claim a line inside it would make', () => {