evilstreak / markdown-js

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

Crash when hanging paragraph in list is followed by horizontal rule #79

Closed autopulated closed 11 years ago

autopulated commented 11 years ago

Example input:

This input crashes markdown-js

 * list

   hanging

---

Results in this error: Uncaught TypeError: Object #<Object> has no method 'processBlock'

At line 638 of markdown.js

evilstreak commented 11 years ago

This input is interpreted as a list followed by a heading by most other parsers rather than as a loose list followed by an hr.

This issue was also reported in https://github.com/evilstreak/markdown-js/issues/17. Closing this issue as a duplicate.