We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8896552 commit 57e1a92Copy full SHA for 57e1a92
src/scripts/markdownChecker.ts
@@ -42,7 +42,7 @@ const INCORRECT_PATH_IN_TRANSLATED_MARKDOWN = new RegExp(
42
"g"
43
)
44
45
-const LINK_TEXT_MISSING_REGEX = new RegExp("\\[\\]\\(([^)]+)\\)", "g");
+const LINK_TEXT_MISSING_REGEX = new RegExp("(?<![\\S])\\[\\]\\(([^)]+)\\)", "g")
46
47
// add <emoji
48
// add /developers/docs/scaling/#layer-2-scaling
@@ -222,7 +222,6 @@ function processMarkdown(path: string) {
222
223
// Check for links missing text
224
while ((linkTextMissingMatch = LINK_TEXT_MISSING_REGEX.exec(markdownFile))) {
225
- console.log('here')
226
const lineNumber = getLineNumber(
227
markdownFile,
228
linkTextMissingMatch.index
0 commit comments