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

Pin the message of an inline {adf} macro closing on a later line, and file item 202

This commit is contained in:
2026-11-17 07:26:06 +01:00
committed by Lillem4n
parent 89639b84ef
commit 57909974a6
2 changed files with 13 additions and 2 deletions
+4 -1
View File
@@ -334,7 +334,10 @@ test(`refuses a list nesting past ${largestNesting} levels, naming its line`, ()
})
test('refuses an inline {adf} macro that closes at the next line\'s start', () => {
assert.equal(read('a {adf:display=inline}{"type":"status"}\n{adf}'), 'unsupported-node-shape at line 1, offset 0')
assert.deepEqual(jiraWikiToAdf('a {adf:display=inline}{"type":"status"}\n{adf}'), {
error: { code: 'unsupported-node-shape', message: 'an {adf} macro inside a line closes on that line: this one closes on a later line', path: [], position: { line: 1, offset: 0 } },
ok: false,
})
})
test('names the line of a refusal after empty lines', () => {