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

Answer prose round 3: the comments on highlight pairing, escaped backtick lengths and the memo read once, and the Raw HTML paragraph loses its half clause

This commit is contained in:
2026-10-04 23:03:11 +02:00
committed by Lillem4n
parent 1ff27164f8
commit 1b55e0f528
4 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -605,7 +605,7 @@ function highlightDelimiters(pieces: readonly Piece[], nodes: readonly Inline[][
return found
}
// Each opener takes the next closer holding at least one character after it, both in one stretch and under the same marks.
// Each opener pairs with the next closer at least one character after it, and only when both sit in one stretch under the same marks.
function pairedHighlights(pieces: readonly Piece[], nodes: readonly Inline[][]): { closer: number; opener: number }[] {
const found = highlightDelimiters(pieces, nodes)
const paired: { closer: number; opener: number }[] = []