evilstreak / markdown-js

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

Cannot read property '__order__' of undefined #145

Closed Pumpapa closed 10 years ago

Pumpapa commented 10 years ago

Fresh install; console.log(x); x=markdown.toHTML(x, {}) produces:

  *is a simple text-based*
  created by *John Gruber*

  **John Gruber**: http://daringfireball.net

domain.js:66
    throw er;
          ^
TypeError: Cannot read property '__order__' of undefined
    at processBlock (/Users/pum/node_modules/markdown/lib/markdown.js:215:16)
    at toTree (/Users/pum/node_modules/markdown/lib/markdown.js:258:20)
    at Object.expose.parse (/Users/pum/node_modules/markdown/lib/markdown.js:69:13)
    at Object.toHTMLTree (/Users/pum/node_modules/markdown/lib/markdown.js:100:48)
    at Object.toHTML (/Users/pum/node_modules/markdown/lib/markdown.js:82:22)
ashb commented 10 years ago

What version did you install/how did you install it?

I can't reproduce this, which either means the input you got was mangled slightly when pasting it in (I edited your post to make it a bit clearer. Don't forget that issues are first processed by github markdown, so using codeblocks is useful.) or we've fixed this already and just need to release a new version

ashb commented 10 years ago

Closing until we get more info. Please fell free to reopen.