Search code examples
htmlmediawikimarkup

In MediaWiki, how to insert code block in bullet points?


In MediaWiki, I do

* section
** item 1 blah blah
** item 2 blah blah 
 code block start
 ...
 code block start
** item 3 blah blah

This will result in item 3 being not correctly formatted -- there is a double bullet points in front of item 3. Any ideas?

Update: The said issue only show up when there are two levels.


Solution

  • You can do this with HTML:

    <ol>
    <li>option 1</li>
    <li>option 2</li>
    </ol>
     code here
    <ol start="3">
      <li>option 3</li>
    </ol>