From d7ba8e6aaec2de1513b206278e359137d6009c18 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Sat, 3 Oct 2026 14:46:29 +0200 Subject: [PATCH] Keep format knowledge out of mergeAdjacentText's comment --- src/adf/document.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adf/document.ts b/src/adf/document.ts index 1ae004c..61afdc7 100644 --- a/src/adf/document.ts +++ b/src/adf/document.ts @@ -77,7 +77,7 @@ export function identicalMarks(left: readonly AdfMark[], right: readonly AdfMark return marksKey(left) === marksKey(right) } -// `joins` is the caller's: a reader joins what CommonMark reads as one, editor-normal ADF what the editor would. +// Callers say when two nodes join. export function mergeAdjacentText(nodes: readonly AdfNode[], joins: (previous: AdfNode, node: AdfNode) => boolean): AdfNode[] { const merged: AdfNode[] = [] for (const node of nodes) {