3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-18 06:05:43 +01:00

Carry a block whose other mark holds a level attribute

This commit is contained in:
2026-11-15 12:17:47 +01:00
committed by Lillem4n
parent d9f987ba4f
commit 617ad5ea46
+1
View File
@@ -240,6 +240,7 @@ test('carries a paragraph or heading holding an alignment HTML cannot spell, or
assert.equal(carriedBlockOf({ attrs: { level: '2' }, type: 'indentation' }), true)
assert.equal(carriedBlockOf({ attrs: { level: 1, x: 1 }, type: 'indentation' }), true)
assert.equal(carriedBlockOf({ type: 'indentation' }), true)
assert.equal(carriedBlockOf({ attrs: { level: 2 }, type: 'strong' }), true)
assert.equal(carriedBlockOf({ attrs: { level: 1 }, type: 'indentation' }, { attrs: { level: 2 }, type: 'indentation' }), true)
assert.equal(carriedBlockOf({ attrs: { align: 'center' }, type: 'alignment' }, { attrs: { align: 'end' }, type: 'alignment' }), true)
assert.equal(carriedBlockOf({ attrs: { align: 'center' }, type: 'alignment' }, { attrs: { level: 1 }, type: 'indentation' }), true)