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 list's codeblock #23

Closed msmid closed 10 years ago

msmid commented 10 years ago

This source

1. list item

    > blockqoute

end with stackoverflow error, probably there is problem in codeblock parsing

msmid commented 10 years ago

now it's parsed as a codeblock because it is 4 spaces intended. Codeblock inside list should be intended 8 spaces

msmid commented 10 years ago

Working properly. But one little bug still remains.

List starting at left margin with nested codeblock:

But list with nested list with nested codeblock is different. Position from where 8 spaces should be intended is after mark. Dingus produces this output. I think it is bug. It is not consistent when one time I have to indent from mark position and next time from position after markup.

msmid commented 10 years ago

Also here on github it behaves differently.

Well, bug or not, this rule applies to other list's nested elements. If I intend blockquote only by one space (from position where list item starts) it doesn't belong into it. It has to be intended twice at least