mirror of
https://github.com/lordmathis/lemma.git
synced 2025-11-07 16:34:26 +00:00
Improve tests and add useGitOps hook test
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user