# 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 (
) !! wikitext a
foo
b !! html

a

foo

b

!! end !! test No p-wrappable content !! options parsoid=wt2html,html2html !! wikitext
x
x
x
!! html
x
x

x
!! end # T177612: Parsoid-only test !! test Transclusion meta tags shouldn't trip Parsoid's useless p-wrapper stripping code !! wikitext {{1x|
x
}} x !! html/parsoid
x

x

!! end !! test Block tag on one line (
) !! wikitext a
foo
b !! html

a

foo

b

!! end !! test Block tag on both lines (
) !! wikitext a
foo
b
foo
!! html

a

foo

b

foo
!! end !! test Block tag on both lines (
) !! wikitext a
foo
b
foo
!! html

a

foo

b

foo

!! end !! test Multiple lines without block tags !! wikitext
foo
a b c d e x
foo
z !! html/php
foo

a

b c d e

x

foo

z

!! html/parsoid
foo

a

b c d e

x

foo

z

!! end !! test Empty lines between lines with block tags !! wikitext
a b
a
b
b
d
e
!! html/php


a

b

a

b

b

d


e
!! html/parsoid


a

b

a

b

b

d


e
!! end !! test Unclosed HTML p-tags should be handled properly !! wikitext

foo

a b !! html/php

foo

a

b

!! html/parsoid

foo

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/parsoid

a

!! end !! test 2. P-wrapping should leave sol-transparent tags outside p-tags where possible !! options parsoid=wt2html !! wikitext [[Category:A1]]a !! html/parsoid

a

!! end !! test No paragraph necessary for SOL transparent template !! wikitext
foo
[[Category:Foo]]
foo
{{1x|[[Category:Foo]]}} !! html/php
foo
foo
!! html/parsoid
foo
foo
!! end !! test Avoid expanding multiline sol transparent template ranges unnecessarily !! wikitext hi {{1x|
}} [[Category:Ho]] !! html/php

hi



!! 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 !! wikitext

hi

!! html/php

hi

!! html/parsoid

hi

!! 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