evilstreak / markdown-js

A Markdown parser for javascript
7.7k stars 863 forks source link

parsing bug produces output containing "undefined" with three or more blockquoted paragraphs #24

Closed kragen closed 12 years ago

kragen commented 13 years ago

Minimal repro:

 > a

 > b

 > c

This generates output that looks like <blockquote><p>a</p><p>bundefined&gt; c</p></blockquote> in the DOM.

ashb commented 12 years ago

Fixed thanks to rlidwka