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

4.2: the review's generator, runner and pattern fixes

This commit is contained in:
2026-09-14 23:24:32 +02:00
parent 04dc38c5d6
commit c7e392654d
3 changed files with 38 additions and 20 deletions
+2 -1
View File
@@ -51,6 +51,7 @@ const htmlBlockConditions: HtmlBlockCondition[] = [
]
const asciiPunctuation = /[!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~]/
const atxHeadingOpener = /^(#{1,6})(?:[ \t]|$)/
const blankLine = /^[ \t]*$/
const codeFenceOpener = /^(`{3,}|~{3,})/
const directiveClaim = /^:{2,}(?:[A-Za-z0-9]|[ \t]*$)/
const pipeClaim = /^\|/
@@ -168,7 +169,7 @@ export function isAutolink(text: string): boolean {
}
export function isBlankLine(line: string): boolean {
return /^[ \t]*$/.test(line)
return blankLine.test(line)
}
export function isThematicBreak(line: string): boolean {