I'm using markdown editor with Pagedown and MarkdownSharp.
There is an option "AutoNewlines" in MarkdownSharp.
I wonder how to do this in Pagedown (http://code.google.com/p/pagedown/).
Thank you!
the first revision of this answer included a rather naive approach which didn't work in most cases.
i ported the AutoNewLines option from MarkDownSharp to PageDown you can download it here http://code.google.com/r/marcdrexel-pagedown/
it should behave exactly as in MarkDownSharp
usage sample:
var converter = Markdown.getSanitizingConverter();
converter.autoNewLine = true;
var editor = new Markdown.Editor(converter);
editor.run();