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

Markdown compatibility issue #20

Closed bmc closed 14 years ago

bmc commented 14 years ago

Standard Markdown:

$ echo "*Test*" | markdown
<p><em>Test</em></p>

Knockoff (built against GitHub source with Scala 2.8):

scala> import com.tristanhunt.knockoff.DefaultDiscounter._
import com.tristanhunt.knockoff.DefaultDiscounter._

scala> toXHTML(knockoff("*Test*")).toString
res0: String = <ul><li>Test*</li></ul>
tristanjuricek commented 14 years ago

In 0.7.1, I added special workarounds so that emphasis or strong markers leading a text paragraph will not mark the block as a list item.