# 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:Foo !!text FOO !!endarticle !! article Template:Blank !! text !! endarticle !! test Comments and Indent-Pre !! wikitext asdf asdf asdf xyz asdf xyz !! html
asdf
asdf
asdf

xyz

asdf
xyz
!! end !! test Comment test 2a !! wikitext asdf jkl !! html

asdf jkl

!! end !! test Comment test 2b !! wikitext asdf jkl !! html

asdf

jkl

!! end !! test Comment test 3 !! wikitext asdf jkl !! html

asdf jkl

!! end !! test Comment test 4 !! wikitext asdfjkl !! html

asdfjkl

!! end !! test Comment spacing !! wikitext a b c !! html

a

 b 

c

!! end !! test Comment whitespace !! wikitext !! html !! end !! test Comment semantics and delimiters !! wikitext !! html/php !! html/parsoid !! end !! test Comment semantics and delimiters, redux !! wikitext !! html/php !! html/parsoid !! end !! test Comment semantics and delimiters: directors cut !! wikitext --> !! html/php

-->

!! html/parsoid

-->

!! end !! test Comment semantics: nesting !! wikitext --> !! html/php

-->

!! html/parsoid

-->

!! end # Parsoid closes the unclosed comment, even if it means a slight # round-trip diff. !! test Comment semantics: unclosed comment at end !! options parsoid=wt2html,html2html !! wikitext !! end !! test Comment semantics: normalize comments to play nice with XML and browsers !! wikitext think this is closed --> This would normally be text --> As would this --> But this is not a comment. !! html/php

But this is not a comment.

!! html/parsoid

But this is not a comment.

!! end !! test Comment semantics: round-trip even text which contains encoded --> !! wikitext !! html/parsoid !! end !! test Comment in template title !! wikitext {{foo}} !! html

FOO

!! end !! test Comment on its own line post-expand !! wikitext a {{blank}} b !! html

a

b

!! end !! test Comment on its own line post-expand with non-significant whitespace !! wikitext a {{blank}} b !! html

a

b

!! end !! test Multiple comments should still parse as SOL-transparent !! options parsoid=wt2html,wt2wt !! wikitext *a *b !! html/php !! html/parsoid !! end ## Make sure ">" gets escaped in comments to avoid XSS !! test IE conditional comments !! wikitext !! html/parsoid !! end ## Regession test for Parsoid !! test Comment with valid json !! wikitext hi ho !! html/php

hi ho

!! html/parsoid

hi ho

!! end