!! Version 2 # Force the test runner to ensure the extension is loaded !! hooks poem !! endhooks !! article Template:1x !! text {{{1}}} !! endarticle #Regression tests for existing functionality, to ensure nothing was broken. !! test !! wikitext this is a test !! html/php

this
is
a
test

!! html/parsoid

this
is
a
test

!! end !!test with recursive parsing !!wikitext this ''is'' a '''test''' !! html/php

this is a test

!! html/parsoid

this is a test

!!end ## FIXME: Is Parsoid output the right output wrt how it actually renders? !!test with leading whitespace !!wikitext test !! html/php


   test

!! html/parsoid


  test

!!end ## FIXME: Parsoid adds

wrapper around the THML
tag !!test Horizontal rule !!wikitext some ----- text !! html/php

some


text

!! html/parsoid

some


text

!!end !! test nested !! wikitext this is a test !! html/php


this
is
a
test

!! html/parsoid


this
is
a
test

!!end !! test nested with formatting !! wikitext this '''is''' a test !! html/php


this
'''is'''
a
test

!! html/parsoid


this
'''is'''
a
test

!! end !! test Basic usage with style !! wikitext A stately pleasure-dome decree: Where Alph, the sacred river, ran Through caverns measureless to man Down to a sunless sea. !! html/php

A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.

!! html/parsoid

A stately pleasure-dome decree:
Where Alph, the sacred river, ran
Through caverns measureless to man
Down to a sunless sea.

!! end # FIXME: This test should be removed once we stop span-wrapping entities in nowikis !! test Verify Parsoid handles entities in nowikis in poem correctly !! wikitext L1 L2 Not a ref foo & bar [[Not a link]] L3 !! html/php

L1
L2

<ref>Not a ref</ref>
foo & bar
[[Not a link]]

L3

!! html/parsoid

L1
L2

<ref>Not a ref</ref>
foo & bar
[[Not a link]]

L3

!! end !! test UTF-8 sequences in extension tags (T231945) !! wikitext {{1x|ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ}} !! html/php

ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ

!! html/parsoid

ၶိူဝ်းႁဝ်ၶိူဝ်းရႃႇၸႃႇ

!! end !! test Multi-line poems with indentation use spans and breaks correctly (T235709) !! wikitext ''CONGREGATI'' :'''EX TOTO ORBE''' ::'''''MATHEMATICI''''' !! html/php

CONGREGATI
EX TOTO ORBE
MATHEMATICI

!! html/parsoid

CONGREGATI
EX TOTO ORBE
MATHEMATICI

!! end !! test Indention syntax with no content !! wikitext :: !! html/php
!! html/parsoid
!! end !! test Poem with class !! wikitext hi ho !! html/php

hi ho

!! html/parsoid

hi ho

!! end !! test Poem with empty class !! wikitext hi ho !! html/php

hi ho

!! html/parsoid

hi ho

!! end