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

Answer architecture round 1: a token's width is true for every kind that carries one, the escape walk threads one record, the == step and the directive precondition say why, and item 96 files the inline HTML scan

This commit is contained in:
2026-10-09 16:48:34 +02:00
committed by Lillem4n
parent 9de333d318
commit 652ae60179
5 changed files with 67 additions and 36 deletions
+1 -1
View File
@@ -88,7 +88,7 @@ export function readDirectiveLine(line: string): Read<DirectiveLine> | undefined
return line.charAt(directivePrefix.length) === '/' ? readCloserLine(line) : readOpenerLine(line)
}
// Reads the directive an `!adf:` at `index` claims.
// The caller has checked `claimsDirectivePrefix` at `index`.
export function readInlineDirective(text: string, index: number): Read<DirectiveSpan> {
return readClaimedDirective(text, index, 1)
}