Pin the link mark's two error codes, and correct what the unspellable corpus holds
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-26 23:04:41 +02:00
parent 19f9a58d5d
commit 4aa0dca9d3
2 changed files with 8 additions and 3 deletions
+2
View File
@@ -90,6 +90,8 @@ test('refuses a link attribute no markdown spelling holds', () => {
code(adfToMarkdown(document(paragraph({ marks: [{ attrs: { href: 'https://example.com/', id: 'x' }, type: 'link' }], text: 't', type: 'text' })))),
'unspellable-mark',
)
assert.equal(code(adfToMarkdown(document(paragraph({ marks: [{ attrs: { href: 4 }, type: 'link' }], text: 't', type: 'text' })))), 'unspellable-mark')
assert.equal(code(adfToMarkdown(document(paragraph({ marks: [{ type: 'link' }], text: 't', type: 'text' })))), 'unsupported-node-shape')
})
test('refuses a mark the canonical spellings cannot nest', () => {