msmid / markdown2docbook

Conversion tool for transforming markdown text files to DocBook/HTML documents. Project is based on XSLT 2.0 technology.
MIT License
21 stars 6 forks source link

First step - parse lists #12

Closed msmid closed 10 years ago

msmid commented 10 years ago

Will be hard because XPath regex engine does not support nor lookbehind/ahead or non-capturing groups. What a shame ...

msmid commented 10 years ago

Hardest parsing. Even parser by John Gruber is not 100% perfect. As he said, only mind-reader could do flawless parsing of lists. Most important is to produce correct output when supplying correct markdown markup.

msmid commented 10 years ago

When recursively calling, it crashes with stack overflow error. (For example, calling it from parse-blockquote)

msmid commented 10 years ago

Solved. There was bug with ordered lists. I forgot include it in regex