The following string will properly be transformed from a markdown list to an HTML list:
string list = "* Item1\n* Item 2";
string text = "here is some **bold** text " + list;
here is some <b>bold</b> text * Item1 * Item 2
I'm not familiar with MarkdownSharp, but most Markdown parsers expect two linebreaks (
\n) between a paragraph and another paragraph, or new content.
So, by appending the
list, you remove
Item1 from potentially starting a new list. By only being a single linebreak (
\n), MarkdownSharp is most likely not perceiving the content as the start of anything new (just a stray linebreak).
Try concatenating the list with
string text = "here is some **bold** text\n\n" + list;