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

Carry each (image) one way: the link directive moves its own to the end

This commit is contained in:
2026-10-23 10:34:16 +02:00
committed by Lillem4n
parent 61a5c073e9
commit 45515e9c85
2 changed files with 24 additions and 29 deletions
@@ -1313,6 +1313,7 @@ test('names the link a directive link wraps, no link holding another', () => {
assert.equal(content(losslessMarkdownToAdf('!adf:link[[a](/v)]{collection=c href="/u"}\n')), named)
assert.equal(content(losslessMarkdownToAdf('!adf:link[a <http://x/> b]{collection=c href="/u"}\n')), named)
assert.equal(content(losslessMarkdownToAdf('!adf:link[<http://x/>]{href="/u"}\n')), named)
assert.equal(content(losslessMarkdownToAdf('!adf:link[x !adf:underline[[![](/u)]()]]{href="a\\nb"}\n')), named)
})
test('names the directive mark left without the content it wraps', () => {