MarkdownSharp
MarkdownSharp copied to clipboard
Set default value " />" for MarkdownOptions.EmptyElementSuffix.
Problem
I met the problem like #9 when I wrote the code as follows.
var markdown = new Markdown(new MarkdownOptions { AutoNewlines = true });
var html = markdown.Transform("AB\nCD"); // Result: "<p>AB<br\nCD</p>" (Unexpected)
"\n" was converted to "<br\n". It's not expected for me and everyone, I think.
We can fix this code like var markdown = new Markdown(new MarkdownOptions { AutoNewlines = true, EmptyElementSuffix = " />" });, but it's more useful if the default value of MarkdownOptions .EmptyElementSuffix was set.
Solution
This PR sets default value " />" for MarkdownOptions.EmptyElementSuffix.
It's the same default value as Markdown.EmptyElementSuffix.
https://ci.appveyor.com/project/StackExchange/markdownsharp/builds/33547200/job/dcqr2n2ujsxdmd4s
An error seemed to occur in AppVayor Ubuntu phase. Can we ignore that?