evilstreak / markdown-js

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

Uncaught SyntaxError: Unexpected token ) #237

Open jamesliu96 opened 9 years ago

jamesliu96 commented 9 years ago

Showing Uncaught SyntaxError: Unexpected token ) in Google Chrome 40.0

It seems to be the problem of the keyword void.

ashb commented 9 years ago

Can you give us more info?

jamesliu96 commented 9 years ago

Thanks for replying. The version is the latest released version at GitHub. It was browser version and I used the minified one. I called markdown.toHTML and gave it a string for input. The string was plain text in markdown syntax. Everything seemed normal... The syntax error was reported in Chrome's console. I simply attempted to replace all void 0 with undefined keyword. Yet the error still exists. After all the output wasn't affected though.

aksrinivas commented 9 years ago

May be You had missed the any one of the parameters that why this error came