stephenharris / WP-MarkDown

WP-MarkDown plug-in. Allows Markdown to be enabled in posts, comments and bbPress forums.
http://wordpress.org/extend/plugins/wp-markdown/
112 stars 19 forks source link

Linebreaks are not processed in live preview #28

Closed ifs-net closed 10 years ago

ifs-net commented 11 years ago

Hi,

I just tried your plugin, seems great, but live preview does not apply line breaks correctly.

In live preview (I think so..) linebreaks should be the same as they will be in the resulting post.

markdown_linebreaks

codemonkee commented 10 years ago

To produce paragraphs markdown, there must be a blank line in-between. If you are looking break a line a part and drop it down you would follow the previous line with 2 spaces __

a
small
test

a  
small  
test

a

small

test

Would be formated like <LF> = Line break, __ = space

a<LF>
small<LF>
test<LF>
<LF>
a__<LF>  
small__<LF>  
test<LF>
<LF>
a<LF>
<LF>
small<LF>
<LF>
test<LF>
stephenharris commented 10 years ago

What @speroshiropetto said :)