From 60f50a4f2c4b82d3a18181f3f27b59f3abe85a1f Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Wed, 14 Oct 2026 00:23:16 +0200 Subject: [PATCH] Name what the emitter carries above slotFault --- src/markdown/directive-syntax.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/markdown/directive-syntax.ts b/src/markdown/directive-syntax.ts index 6d17ac6..4eb7c1b 100644 --- a/src/markdown/directive-syntax.ts +++ b/src/markdown/directive-syntax.ts @@ -105,7 +105,7 @@ export function readSoleStringAttribute(span: DirectiveSpan, key: string): Read< return { value: spelled.decoded } } -// The emitter carries such a node. +// The emitter carries a node whose slot this refuses. export function slotFault(type: string, text: string): ConvertFault | undefined { if (/[\n\r]/.test(text)) return unsupportedNodeShape(`the ${type} content slot holds a line ending, and an inline directive never spans lines: replace it with a space, or write the node as !adf:carry`) return holdsNullCharacter(text) ? unsupportedNodeShape(`the ${type} content slot holds a null character: write the node as !adf:carry`) : undefined