One comment guards the input's shape, the other the field
CI / gate (push) Successful in 37s
CI / publish (push) Successful in 4s

This commit was merged in pull request #104.
This commit is contained in:
2026-09-19 02:33:23 +02:00
parent 4a80e38f19
commit 7d1463da0d
+1 -1
View File
@@ -849,7 +849,7 @@ test('keeps the carry and the image the brackets a nested link leaves literal ho
assert.deepEqual(content(markdownToAdf(`[[<http://x/>](/c)${carried}](/w)\n`)), [
{ content: [text('[['), marked('http://x/', link('http://x/')), text('](/c)'), { type: 'placeholder' }, text('](/w)')], type: 'paragraph' },
])
// The image close folds the link-marked piece into alt text, so only the deactivation still knows the enclosing bracket is doomed.
// The failing bracket sits inside the image, not beside it: beside it the link-marked piece survives, and the deactivation stops being what the assertion pins.
assert.deepEqual(content(markdownToAdf('![![a [b](/c) ](/i)[![[<http://x/>](/c)](/y)](/w)](/v)\n')), [image('/v', 'a b [[http://x/](/c)](/w)')])
})