Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ private static void ValidateInternalUrl(InlineProcessor processor, string url, s
processor.EmitWarning(link, $"Local file `{url}` has a redirect, please update this reference to: {name}");
}
else
processor.EmitError(link, $"`{url}` does not exist. If it was recently removed add a redirect. resolved to `{pathOnDisk}");
processor.EmitError(link, $"`{url}` does not exist. If it was recently removed add a redirect. resolved to `{pathOnDisk}`");

}
}
Expand Down Expand Up @@ -340,7 +340,7 @@ private static void UpdateLinkUrl(LinkInline link, MarkdownFile? linkMarkdown, s
{
newUrl = newUrl.EndsWith($"{Path.DirectorySeparatorChar}index.md")
? newUrl.Remove(newUrl.LastIndexOf("index.md", StringComparison.Ordinal), "index.md".Length)
: newUrl.Remove(url.LastIndexOf(".md", StringComparison.Ordinal), ".md".Length);
: newUrl.Remove(newUrl.LastIndexOf(".md", StringComparison.Ordinal), ".md".Length);
}

// TODO this is hardcoded should be part of extension system
Expand Down
Loading