Improve tests and add useGitOps hook test

This commit is contained in:
2025-05-27 21:33:02 +02:00
parent 942ff17c4f
commit 9cefe12872
6 changed files with 450 additions and 21 deletions

View File

@@ -233,6 +233,13 @@ export function remarkWikiLinks(workspaceName: string) {
}
try {
// Skip API call for empty or whitespace-only filenames
if (!match.fileName.trim()) {
newNodes.push(createTextNode(match.fullMatch));
lastIndex = match.index + match.fullMatch.length;
continue;
}
const lookupFileName: string = match.isImage
? match.fileName
: addMarkdownExtension(match.fileName);