5c: keep the mark nesting explanation in one place
CI / gate (push) Successful in 5m13s
CI / publish (push) Has been skipped

This commit is contained in:
2026-09-04 09:19:09 +02:00
parent 7612feb75e
commit b58f51f846
@@ -344,7 +344,6 @@ test('refuses marks and attributes nested deeper than the emitter carries', () =
return value
}
const card = (levels: number): AdfNode => ({ attrs: { data: nested(levels), url: 'https://example.com/a' }, type: 'inlineCard' })
// A block directive spells the mark set as one JSON attribute, so a mark's value is read three levels in.
const marked = (levels: number): AdfNode => ({
attrs: { panelType: 'info' },
content: [paragraph({ text: 'x', type: 'text' })],