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:
@@ -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 }[] = []
|
||||
|
||||
Reference in New Issue
Block a user