# The parsoid-compatible option below is only relevant when we are running # parser tests in integrated mode with Parsoid. This option is ignored # when this test file is run with Parsoid in standalone mode. !! options parsoid-compatible=wt2html,wt2wt version=2 !! end !! article Template:1x !! text {{{1}}} !! endarticle !! test No block tags !! wikitext a b !! html
a
b
!! end !! test Block tag on one line (a
b
!! end !! test No p-wrappable content !! options parsoid=wt2html,html2html !! wikitextx
!! end !! test Block tag on one line () !! wikitext afoob !! htmla
foo
b
!! end !! test Block tag on both lines () !! wikitext afoobfoo!! htmla
foob
foo!! end !! test Block tag on both lines () !! wikitext afoobfoo!! htmla
foo
b
!! end !! test Multiple lines without block tags !! wikitextfoo
fooa b c d e xfooz !! html/phpfooa
b c d e
x
fooz
!! html/parsoidfooa
b c d e
x
fooz
!! end !! test Empty lines between lines with block tags !! wikitext a babbde!! html/php
a
b
ab
bd
e!! html/parsoid
a
b
ab
bd
e!! end !! test Unclosed HTML p-tags should be handled properly !! wikitexta b !! html/phpfoo
foo
a
b
!! html/parsoidfoo
a
b
!! end ## SSS FIXME: I can come up with other scenarios where this doesn't work because ## of eager output of buffered tokens in the p-wrapper. But, I'm going to ignore ## them for now. !! test 1. P-wrapping should leave sol-transparent tags outside p-tags where possible !! options parsoid=wt2html !! wikitext a [[Category:A1]] [[Category:A2]] [[Category:A3]] [[Category:A4]] !! html/parsoida
!! end !! test 2. P-wrapping should leave sol-transparent tags outside p-tags where possible !! options parsoid=wt2html !! wikitext [[Category:A1]]a !! html/parsoida
!! end !! test No paragraph necessary for SOL transparent template !! wikitextfoo[[Category:Foo]]foo{{1x|[[Category:Foo]]}} !! html/phpfoofoo!! html/parsoidfoofoo!! end !! test Avoid expanding multiline sol transparent template ranges unnecessarily !! wikitext hi {{1x|
}} [[Category:Ho]] !! html/phphi
!! html/parsoid
hi
!! end !! test Paragraph wrapping following unclosed table !! options parsoid=wt2html,html2html !! wikitext {| |- {| | x |} a b c !! html/php
x a
b
c
!! html/parsoid
x a
b
c
!! end !! test Paragraph wrapping suppressed in html p !! options parsoid=wt2html,html2html !! wikitexthi
!! html/phphi
!! html/parsoidhi
!! end !! test Dangling table row doesn't prevent p-wrapping !! options parsoid=wt2html,html2html !! wikitext {| | hi |- |} ho !! html/parsoid
hi ho
!! end !! test P-wrapping non-breaking spaces !! wikitext !! html/php!! html/parsoid
!! end !! test Paragraph wrapping suppressed in table captions !! wikitext {| |+hi |ho |} {| |hi |+ho |} it's off to work we go !! html/php
hi ho
hi ho it's off to work we go
!! html/parsoid
hi ho
hi ho it's off to work we go
!! end