diff --git a/src/conformance/property-harness.ts b/src/conformance/property-harness.ts index 5f4700e..0f3cc41 100644 --- a/src/conformance/property-harness.ts +++ b/src/conformance/property-harness.ts @@ -11,7 +11,7 @@ import { blockNodes } from '../adf/block-nodes.ts' import { directivePrefix } from '../markdown/directive-syntax.ts' import { emptyKeys, mergeAdjacentText } from '../adf/document.ts' import { inlineNodes } from '../adf/inline-nodes.ts' -import { joinsWhenEditorNormal } from '../markdown/plain/editor-normal.ts' +import { joinsWhenRead } from '../markdown/adjacent-text.ts' import { markAttributes } from '../adf/mark-attributes.ts' type Positions = { block: AdfNode; inline: AdfNode } @@ -91,7 +91,7 @@ function withoutEmptyKeys(held: T): T { } function occasionallyApart(arbitrary: Arbitrary): Arbitrary { - return fc.tuple(arbitrary, fc.nat({ max: 5 })).map(([nodes, roll]) => (roll === 0 ? nodes : mergeAdjacentText(nodes, joinsWhenEditorNormal))) + return fc.tuple(arbitrary, fc.nat({ max: 5 })).map(([nodes, roll]) => (roll === 0 ? nodes : mergeAdjacentText(nodes, joinsWhenRead))) } function pipeTable({ body, header }: { body: AdfNode[][]; header: AdfNode[] }): AdfNode {