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

Answer prose round 1: 1 🔴, 6 🟡 (0 misread); state the refusal beside the carry rule, date it, and fix the cause bullets and the message

This commit is contained in:
2026-11-04 19:42:55 +01:00
committed by Lillem4n
parent 18c35e0f78
commit b9fd34abfb
5 changed files with 16 additions and 11 deletions
+1 -1
View File
@@ -282,7 +282,7 @@ test('links a card a link marks, inside a carried node, to that link\'s target a
assert.equal(shown(html(adfToHtml(document({ content: [paragraph(card)], type: 'panel' })))), '<p><a href="https://example.com/">https://example.com/roadmap</a></p>')
})
test('refuses an inline card a link marks, which ADF\'s schema gives no link mark', () => {
test('refuses an inline card a link marks, which Atlassian\'s schema does not allow', () => {
const marks: AdfMark[] = [{ attrs: { href: 'https://example.com/' }, type: 'link' }]
const cards: AdfNode[] = [{ attrs: { url: 'https://example.com/roadmap' }, marks, type: 'inlineCard' }, { attrs: { data: { name: 'Roadmap', url: 'https://example.com/roadmap' } }, marks, type: 'inlineCard' }]
for (const card of cards) {