3
0
mirror of https://github.com/larvit/adf-codec.git synced 2026-11-12 11:48:29 +01:00

5c: keep the mark nesting explanation in one place

This commit is contained in:
2026-09-04 09:19:09 +02:00
parent 84844c02b4
commit 8a936f7c07
@@ -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' })],