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 8d0e543 commit b205ac2Copy full SHA for b205ac2
src/Elastic.Markdown/Myst/Directives/Diagram/DiagramBlock.cs
@@ -112,7 +112,10 @@ private string GenerateLocalPath(ParserContext context)
112
}
113
114
var filename = $"{markdownFileName}-diagram-{DiagramType}-{ContentHash}.svg";
115
- return Path.Combine("images", "generated-graphs", filename);
+ var localPath = Path.Combine("images", "generated-graphs", filename);
116
+
117
+ // Normalize path separators to forward slashes for web compatibility
118
+ return localPath.Replace(Path.DirectorySeparatorChar, '/');
119
120
121
private async Task TryCacheDiagramAsync(ParserContext context)
0 commit comments