Created
June 13, 2023 00:46
-
-
Save RickStrahl/36035c87787fc24e37861059e40a6f8b to your computer and use it in GitHub Desktop.
Demonstrates that Markdig Media links are not working when using relative links - appears they only work with http urls
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
var builder = new MarkdownPipelineBuilder() | |
//.UseAdvancedExtensions() | |
.UseMediaLinks() | |
.Build(); | |
var md = """ | |
## Plain Image Link | |
![Image](TheArbiterOfTruth.png) | |
## Video | |
![Video](TheArbiterOfTruth.mp4) | |
![Video](https://sample.com/TheArbiterOfTruth.mp4) | |
## Audio | |
![Music](TheArbiterOfTruth.mp3) | |
"""; | |
var html = Markdown.ToHtml(md, builder); | |
Console.WriteLine(html); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment