Parser testing/doBlockLevels

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Input[edit]

*Common list
* item 2
*item 3

#Numbered list
#item 2
# item 3

*Mixed list
*# with numbers
** and bullets
*# and numbers
*bullets again
**bullet level 2
***bullet level 3
***#Number on level 4
**bullet level 2
**#Number on level 3
**#Number on level 3
*#number level 2
*Level 1

Output[edit]

  • Common list
  • item 2
  • item 3
  1. Numbered list
  2. item 2
  3. item 3
  • Mixed list
    1. with numbers
    • and bullets
    1. and numbers
  • bullets again
    • bullet level 2
      • bullet level 3
        1. Number on level 4
    • bullet level 2
      1. Number on level 3
      2. Number on level 3
    1. number level 2
  • Level 1

Expected[edit]

<ul>
<li>Common list</li>
<li>item 2</li>
<li>item 3</li>
</ul>
<ol>
<li>Numbered list</li>
<li>item 2</li>
<li>item 3</li>
</ol>
<ul>
<li>Mixed list
<ol>
<li>with numbers</li>
</ol>
<ul>
<li>and bullets</li>
</ul>
<ol>
<li>and numbers</li>
</ol>
</li>
<li>bullets again
<ul>
<li>bullet level 2
<ul>
<li>bullet level 3
<ol>
<li>Number on level 4</li>
</ol>
</li>
</ul>
</li>
<li>bullet level 2
<ol>
<li>Number on level 3</li>
<li>Number on level 3</li>
</ol>
</li>
</ul>
<ol>
<li>number level 2</li>
</ol>
</li>
<li>Level 1</li>
</ul>