Markdown filter should not introduce new lines automatically, to avoid invalid

HTML and to be consistent with the client-side libray used in the editor.

--HG--
branch : 1.x
This commit is contained in:
Bertrand Le Roy
2013-04-05 12:38:52 -07:00
parent c7e0784b13
commit 6850d9d3da

View File

@@ -11,7 +11,7 @@ namespace Markdown.Services {
if (string.IsNullOrEmpty(text))
return string.Empty;
var markdown = new MarkdownSharp.Markdown(new MarkdownOptions { AutoNewLines = true });
var markdown = new MarkdownSharp.Markdown(new MarkdownOptions { AutoNewLines = false });
return markdown.Transform(text);
}
}