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

Lists being parsed incorrectly #38

Closed Synesso closed 10 years ago

Synesso commented 10 years ago

Input:

1. This
2. That; and
3. the other

* not
* the
* end

and

- another
- style

and

+ finally
+ this
+ style

Converts to Block:

ListBuffer(OrderedList(List(OrderedItem(List(Paragraph(List(Text(This2. That; and3. the other), Emphasis(List(Text( not))), Text( the* endand- another- styleand+ finally+ this+ style)),1.1)),1.1))))

Converts to XHTML:

<ol>
  <li>
    This2. That; and3. the other
    <em> not</em>
    the* endand- another- styleand+ finally+ this+ style
  </li>
</ol>

expected rendering:

  1. This
  2. That; and
  3. the other
    • not
    • the
    • end

and

and

Synesso commented 10 years ago

version "com.tristanhunt" %% "knockoff" % "0.8.2"

Synesso commented 10 years ago

Oh, I've been a bad, bad user. Please ignore this. It's all my fault. >.<