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

Review nits: the walk's start needs no clamp, and the invariant needs one copy

This commit is contained in:
2026-09-19 02:15:15 +02:00
parent 29bb0a29f6
commit 508851b953
2 changed files with 2 additions and 3 deletions
@@ -841,7 +841,6 @@ test('leaves the brackets of a link whose text already holds one the text they a
])
})
// Literal brackets hold what no mark may, so the openers they doom give way before closeLink refuses a carry or an image inside them.
test('keeps the carry and the image the brackets a nested link leaves literal hold', () => {
assert.deepEqual(content(markdownToAdf('[[<http://x/>](/c)!adf:carry{json="{\\"type\\":\\"blockCard\\"}"}](/w)\n')), [
{ content: [text('[['), marked('http://x/', link('http://x/')), text('](/c)'), { type: 'blockCard' }, text('](/w)')], type: 'paragraph' },