markdown-js icon indicating copy to clipboard operation
markdown-js copied to clipboard

Uncaught SyntaxError: Unexpected token )

Open jamesliu96 opened this issue 10 years ago • 3 comments
trafficstars

Showing Uncaught SyntaxError: Unexpected token ) in Google Chrome 40.0

It seems to be the problem of the keyword void.

jamesliu96 avatar Feb 06 '15 06:02 jamesliu96

Can you give us more info?

  • What version were you using? Where did it come from?
  • What function was this in?
  • What was the input you gave it?

ashb avatar Feb 06 '15 10:02 ashb

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.

jamesliu96 avatar Feb 09 '15 11:02 jamesliu96

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

aksrinivas avatar Apr 03 '15 05:04 aksrinivas