docs: add check and fix links spanning 3 lines

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2024-05-10 10:27:58 +02:00
parent 131e5cbfe8
commit c3623c0cb6
4 changed files with 6 additions and 13 deletions
+2 -1
View File
@@ -137,7 +137,8 @@ async function verifyFile(filePath, docPages) {
}
}
const multiLineLinks = content.match(/\[[^\]\n]+?\n[^\]\n]*?\]\(/g) || [];
const multiLineLinks =
content.match(/\[[^\]\n]+?\n[^\]\n]*?(?:\n[^\]\n]*?)?\]\(/g) || [];
badUrls.push(
...multiLineLinks.map(url => ({
url,