Read the emphasis, the links and the lone image CommonMark spells (#34)
CI / gate (push) Successful in 5s

This commit was merged in pull request #34.
This commit is contained in:
2026-08-31 22:33:54 +02:00
parent 0476d33b7b
commit 4ad80e79c5
31 changed files with 899 additions and 218 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
import { runLength } from './emphasis-matching.ts'
export function backtickRun(text: string, index: number): number {
let length = 0
while (text.charAt(index + length) === '`') length += 1
return length
return text.charAt(index) === '`' ? runLength(text, index) : 0
}
// Where the run of exactly `opener` backticks closing a code span begins, `undefined` where none does.