Parser testing/strip
From Meta, a Wikimedia project coordination wiki
Contents |
[edit] Input
<nowiki>* This is not an unordered list item.</nowiki>
[edit] Output
The following should start with an asterisk:
* This is not an unordered list item.
[edit] Expected
<p>* This is not an unordered list item.</p>
[edit] Input
<nowiki>Lorem ipsum dolor sed abit. sed nullum. :and a colon </nowiki>
[edit] Output
A multi-line nowiki:
Lorem ipsum dolor sed abit. sed nullum. :and a colon
[edit] Expected
<p>Lorem ipsum dolor sed abit. sed nullum. :and a colon</p>
[edit] Input
: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>.
[edit] Output
The following pairs should look the same:
- There is not nowiki.
- There is nowiki.
- There is not nowiki.
- There is nowiki.
- There is not nowiki.
- There is nowiki.
[edit] Expected
<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>