pandoc/test/command/4722.md
Mauro Bieg 0459d1be26 TikiWiki reader: improve list parsing (#4723)
- remove trailing Space from list items
- parse lists that have no space after marker (fixes #4722)
2018-06-28 13:35:54 +02:00

757 B

% pandoc -f tikiwiki -t native
*Level 1
*Level 1
**Level 2
***Level 3
*Level 1
^D
[BulletList
 [[Plain [Str "Level",Space,Str "1"]]
 ,[Plain [Str "Level",Space,Str "1"]
  ,BulletList
   [[Plain [Str "Level",Space,Str "2"]
    ,BulletList
     [[Plain [Str "Level",Space,Str "3"]]]]]]
 ,[Plain [Str "Level",Space,Str "1"]]]]
% pandoc -f tikiwiki -t native
#Level 1
#Level 1
##Level 2
###Level 3
#Level 1
^D
[OrderedList (1,DefaultStyle,DefaultDelim)
 [[Plain [Str "Level",Space,Str "1"]]
 ,[Plain [Str "Level",Space,Str "1"]
  ,OrderedList (1,DefaultStyle,DefaultDelim)
   [[Plain [Str "Level",Space,Str "2"]
    ,OrderedList (1,DefaultStyle,DefaultDelim)
     [[Plain [Str "Level",Space,Str "3"]]]]]]
 ,[Plain [Str "Level",Space,Str "1"]]]]