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

25 - the definitions §11 held sit at the code, and §8 says only what the README does not

This commit is contained in:
2026-09-23 23:36:24 +02:00
parent ab60dcfe1f
commit 8b9fda5fa0
5 changed files with 19 additions and 25 deletions
@@ -27,6 +27,7 @@ export function isWordCharacter(character: string): boolean {
return character !== '' && !isWhitespace(character) && !isPunctuation(character)
}
// Transcribes CommonMark's reference process_emphasis line for line; the closer walk and opener search stay whole, since named steps drift from it.
export function matchEmphasis<Run extends DelimiterRun>(runs: readonly Run[]): EmphasisPairing<Run>[] {
const pairings: EmphasisPairing<Run>[] = []
const bottoms = new Map<string, Candidate<Run> | undefined>()