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 73108e3 commit 8386e11Copy full SHA for 8386e11
src/Elastic.Markdown/Myst/Renderers/LlmMarkdown/LlmBlockRenderers.cs
@@ -128,7 +128,7 @@ private static bool HasFileExtension(string path)
128
if (Uri.TryCreate(path, UriKind.RelativeOrAbsolute, out var uri))
129
{
130
// Get the path component without query/fragment
131
- var pathOnly = uri.IsAbsoluteUri ? uri.AbsolutePath : uri.OriginalString.Split('?', '#')[0];
+ var pathOnly = uri.GetLeftPart(UriPartial.Path);
132
var ext = Path.GetExtension(pathOnly);
133
return !string.IsNullOrEmpty(ext);
134
}
0 commit comments