evilstreak / markdown-js

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

Undeclared variables #1

Closed micmath closed 14 years ago

micmath commented 14 years ago

js: warning: "markdown.js", line 925: Assignment to undeclared variable i js: warning: "markdown.js", line 936: Assignment to undeclared variable i

evilstreak commented 14 years ago

I've found a couple of undefined uses of i about 40 lines away from those numbers which I've pushed a fix for.

I couldn't actually get that warning to be produced though. How were you running the code and with what input?

micmath commented 14 years ago

Sorry, I should have specified, those error messages were from the v0.1.2 download. The line numbers definitely are correct for that version, I've fixed it already in my local copy.

The warnings appeared in my server logs when running your module in a new RingoJS app I'm playing around with.

Many thanks for sharing this as MIT-licensed code by the way :)