Parser testing/strip

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

Input[edit]

<nowiki>* This is not an unordered list item.</nowiki>

Output[edit]

The following should start with an asterisk:

* This is not an unordered list item.

Expected[edit]


<p>* This is not an unordered list item.</p>

Input[edit]

<nowiki>Lorem ipsum dolor

sed abit.
  sed nullum.

:and a colon
</nowiki>

Output[edit]

A multi-line nowiki:

Lorem ipsum dolor sed abit. sed nullum. :and a colon

Expected[edit]

<p>Lorem ipsum dolor sed abit. sed nullum. :and a colon</p>

Input[edit]

:There is not nowiki.
:There is <nowiki>nowiki</nowiki>.

#There is not nowiki.
#There is <nowiki>nowiki</nowiki>.

*There is not nowiki.
*There is <nowiki>nowiki</nowiki>.

Output[edit]

The following pairs should look the same:

There is not nowiki.
There is nowiki.
  1. There is not nowiki.
  2. There is nowiki.
  • There is not nowiki.
  • There is nowiki.

Expected[edit]

<dl>
<dd>There is not nowiki.</dd>
<dd>There is nowiki.</dd>
</dl>
<ol>
<li>There is not nowiki.</li>
<li>There is nowiki.</li>
</ol>
<ul>
<li>There is not nowiki.</li>
<li>There is nowiki.</li>
</ul>