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

Emit a line in time linear in its mark runs

This commit is contained in:
2026-10-29 13:05:36 +01:00
committed by Lillem4n
parent 3f13738ae4
commit 1f8619e272
6 changed files with 92 additions and 30 deletions
@@ -379,6 +379,8 @@ test('percent-encodes a link href no CommonMark escape writes until one does', (
test('drops the mark of a run CommonMark flanking or matching cannot spell', () => {
assert.equal(portable(paragraph(text('un'), text('-real', strong), text('istic'))), 'un-realistic\n')
assert.equal(portable(paragraph(text('un'), text('-r', strong), text('un'), text('-r', strong), text('un'))), 'un-run-run\n')
assert.equal(portable(paragraph(text('0'), text('a', { type: 'strike' }, strong), text('-', strong), text('0'))), '0a-0\n')
assert.equal(portable(paragraph(text('a', em), text('b', strong), text('c', em))), '_a_**b**_c_\n')
assert.equal(portable(paragraph(text('x'), text('*', em), text('y'))), 'x\\*y\n')
const highlight: AdfMark = { type: 'backgroundColor' }