Parser testing/doAllQuotes

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

Input[edit]

Normal text. '''Bold text.''' Normal text. ''Italic text.''

'''Bold text..

..spanning two paragraphs (should not work).'''

Normal text. '''''Bold italic text.''''' Normal text.

'''''Bold italic text '''with bold deactivated''' in between.'''''

'''''Bold italic text ''with italic deactivated'' in between.'''''

'''Bold tag left open

''Italic tag left open

Normal text.

Unmatching number of opening, closing tags: 

'''This year''''s election ''should'' beat '''last year''''s.

''Tom'''s car is bigger than ''Susan'''s.

Output[edit]

Normal text. Bold text. Normal text. Italic text.

Bold text..

..spanning two paragraphs (should not work).

Normal text. Bold italic text. Normal text.

Bold italic text with bold deactivated in between.

Bold italic text with italic deactivated in between.

Bold tag left open

Italic tag left open

Normal text.

This year's election should beat last year's.

Toms car is bigger than Susans.

Expected[edit]

<p>Normal text. <strong>Bold text.</strong> Normal text. <em>Italic text.</em></p>
<p><strong>Bold text..</strong></p>
<p>..spanning two paragraphs (should not work).</p>
<p>Normal text. <em><strong>Bold italic text.</strong></em> Normal text.</p>
<p><em><strong>Bold italic text</strong> with bold deactivated <strong>in between.</strong></em></p>
<p><strong><em>Bold italic text</em> with italic deactivated <em>in between.</em></strong></p>
<p><strong>Bold tag left open</strong></p>
<p><em>Italic tag left open</em></p>
<p>Normal text.</p>
<p><strong>This year</strong>'s election <em>should</em> beat <strong>last year</strong>'s.</p>
<p><em>Tom<strong>s car is bigger than</strong></em> <strong>Susan</strong>s.</p>