c# - MarkdownSharp does not transform list -


the following string transformed markdown list html list:

string list = "* item1\n* item 2";

however, if have other string, append list it, output unexpected.

string text = "here **bold** text " + list;

output:

here <b>bold</b> text * item1 * item 2

it seems problem trying transform list exists in block of other text? if problem, intended behavior?

i'm not familiar markdownsharp, markdown parsers expect 2 linebreaks (\n) between paragraph , paragraph, or new content.

so, appending list, remove item1 potentially starting new list. being single linebreak (\n), markdownsharp not perceiving content start of new (just stray linebreak).

try concatenating list \n\n.

string text = "here **bold** text\n\n" + list; 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -