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

Answer prose round 1: the decision says right after and keeps only its reason, the README counts the link-definition exception, and the comments and spec say which list alternates

This commit is contained in:
2026-10-09 15:23:05 +02:00
committed by Lillem4n
parent e689b83f64
commit 167bf1ff9b
10 changed files with 35 additions and 40 deletions
@@ -125,7 +125,7 @@ function portableSequence(blocks: readonly AdfNode[], reduction: Reduction): Res
sequence.push(block)
continue
}
// Read next, since a replacement may take the directive form itself.
// Back on `pending`: a replacement may take the directive form itself.
const replacement = block === next ? nodeContent(block).flatMap(nodeContent) : [block]
for (const node of replacement.reverse()) pending.push(node)
}