Keep the tight spelling to a CommonMark block above the nested list
CI / gate (push) Successful in 5s

This commit is contained in:
2026-08-30 21:01:53 +02:00
parent 7fc0cdb827
commit bb93bc61d5
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -55,7 +55,7 @@ function emitBlocks(nodes: readonly AdfNode[], container: BlockContainer, path:
function separationBetween(previous: PlacedBlock, next: PlacedBlock, container: BlockContainer): Result<string> {
const plainPair = previous.spelling !== 'directive' && next.spelling !== 'directive'
if (next.spelling === 'list') {
if (plainPair && next.spelling === 'list') {
if (previous.spelling === 'list' && previous.node.type === next.node.type) {
return failure('unspellable-adjacent-lists', `two adjacent ${next.node.type} nodes read back as one list`, next.path)
}