mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user