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

Answer principles round 1: 0 🔴, 1 🟡; scope the changelog to outside directives, and keep the backtick cursor inside a closure

This commit is contained in:
2026-10-18 10:46:49 +02:00
committed by Lillem4n
parent e12249e593
commit a674df9b75
8 changed files with 64 additions and 47 deletions
+1 -1
View File
@@ -146,7 +146,7 @@ function htmlTagName(text: string): string {
return text.replace(tagName, '<$1>')
}
// `terminated` says whether a terminator starts at or after `from`, which a caller asking at every opener answers from what it kept.
// `terminated` says whether `terminator` starts at or after `from` in `text`.
export function inlineHtmlConstruct(text: string, index: number, terminated: (terminator: string, from: number) => boolean): string | undefined {
for (const construct of inlineHtmlConstructs) {
construct.opener.lastIndex = index