tristanjuricek / knockoff

A Markdown parser + object model in scala
http://tristanjuricek.github.com/knockoff
BSD 3-Clause "New" or "Revised" License
102 stars 17 forks source link

Stackoverflow error with empty code block #17

Closed tristanjuricek closed 11 years ago

tristanjuricek commented 14 years ago

I had a basic document started and got a stack overflow error. It looked like this:

# Title #

Note that the second line has no spaces and the third line has four spaces (start a code block). This made things go kaboom.

tristanjuricek commented 14 years ago

Hm, the GitHub markdown didn't work.

razie commented 12 years ago

I hit the same issue with a simple sequence of 5 spaces:

object Test extends App {
  import com.tristanhunt.knockoff.DefaultDiscounter._
  println(toXHTML(knockoff("""     """)).toString)
}
tristanjuricek commented 11 years ago

Should be fixed in 0.8.1