markedjs / marked

A markdown parser and compiler. Built for speed.
https://marked.js.org
Other
33.06k stars 3.39k forks source link

empty tail on block quotes #8

Closed puzrin closed 12 years ago

puzrin commented 12 years ago

If text have 2 empty lines after block quote, then empty line is attached to quoted text after rendering. That should not happen.

http://imm.io/cmoh

chjj commented 12 years ago

Hmm, @dvv mentioned this the other day in a line comment. It looks like markdown.pl ensures a trailing \n for some reason, but I think you guys are right. It is ugly. I'll have marked slice off the trailing line feed.

chjj commented 12 years ago

Fixed: c8f26acd125c2ddabe49a0e1b48ef19504614a36

Also pushed to npm.

chjj commented 12 years ago

Also, I'm assuming you were referring to code blocks when you posted this. Not blockquotes. Blockquotes don't grab the trailing line feeds. Let me know if you meant otherwise.

puzrin commented 12 years ago

It's ok now, thank you for fix.