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
If inline code blocks in single ticks contain special HTML characters the inline code is not HTML decoded properly.
[Fact]
public void When_InlineCode_Shouldnt_Contain_Encoded_Chars()
{
var html = @"This is inline code: <code><AspNetCoreHostingModel></code>.";
var expected = @"This is inline code: `<AspNetCoreHostingModel>`.";
var converter = new Converter();
var result = converter.Convert(html);
Assert.Equal(expected, result, StringComparer.OrdinalIgnoreCase);
}
This is inline code: <code><AspNetCoreHostingModel></code>.
renders as:
This is inline code: `<AspNetCoreHostingModel>`.";
but should render as:
This is inline code: `<AspNetCoreHostingModel>`.";
If inline code blocks in single ticks contain special HTML characters the inline code is not HTML decoded properly.
renders as:
but should render as: