This is a static dump of issues in the old "Flyspray" bugtracker for DokuWiki. Bugs and feature requests
are now tracked at the issue tracker at Github.
Closed
Won't fix
FS#189 Ordered lists not parsing code blocks properly
Syntax
2005-03-07samiam
When using an ordered list, the parser seems very picky as to when it restarts it's numbering order. Here is an example code block that works correctly:
------------------------------
- item 1
- item 2
- item 3<code>
Code fragment 1
</code>
- item 4
- sub item 1
- sub item 2
- item 5
------------------------------
Note how the <code> must be on the same line as item 3's listitem. Here is additional code that shows the parser not correctly placing the code blocks in the right place, thus reverting the orderedlist number back to 1.
------------------------------
- item 1
- item 2
- item 3<code>
Code fragment 1
</code>
- item 4
- sub item 1
- sub item 2
- item 5
<code>
Code fragment 2
</code>
- item 6
''
Code fragment 3
''
- item 7
------------------------------
Is this a bug? Am I just trying to do ordered lists incorrectly? Or is this a known limitation of dokuwiki? Thanks for a great product.
2005-03-07andi
This isn't really a bug - more a known limitation. Usually you can only have single line items in lists. That it is working with using code on the same line is a byproduct of how the parser works and wasn't intended but is a nice to have.