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

List parsing #57

Open msmid opened 8 years ago

msmid commented 8 years ago

List parsing is working but limited. It doesnt respect one blank line before list and every list item is wrapped in paragraph element.

In reality, you dont have to put blank line between para and list, so

para
- list

is goning to be

 <para>para</para>
 <itemizedlist>
     <listitem>
        <para>list</para>
     </listitem>
  </itemizedlist>

which should be correctly this

<para>para
- list</para>

Also items without blank lines are not wrapped in para element, but items with lines are.