ReverseMarkdown.Net is a Html to Markdown converter library in C#. Conversion is very reliable since HtmlAgilityPack (HAP) library is used for traversing the Html DOM
using System;
public class Program
{
public static void Main()
{
var converter = new ReverseMarkdown.Converter();
string html = "This a sample <strong>paragraph</strong> from <a href=\"https://www.w3schools.com/html/mov_bbb.mp4\">https://www.w3schools.com/html/mov_bbb.mp4</a>";
string result = converter.Convert(html);
Console.WriteLine(result);
}
}
I expect the output to be as follows:
This a sample **paragraph** from [https://www.w3schools.com/html/mov_bbb.mp4](https://www.w3schools.com/html/mov_bbb.mp4)
Instead it is
This a sample **paragraph** from [https://www.w3schools.com/html/mov\_bbb.mp4](https://www.w3schools.com/html/mov_bbb.mp4)
Not that the URL has a backslash added in front of the _. It seems that there is some escaping going on which is not correct. Any idea why this is happening?
I have the following code:
I expect the output to be as follows:
Instead it is
Not that the URL has a backslash added in front of the
_
. It seems that there is some escaping going on which is not correct. Any idea why this is happening?