# This file should only contain tests using special characters # that trip up some text editors. # a) Already lost this test for years when removed on r12975 # b) Some text editors choke on the file due to the character # # 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 !! test External links: invalid character NUL (stripped) !! wikitext [http://www.example.com test] !! html
!! end !! test External links: invalid character backspace (preserved) !! options preprocessor=Preprocessor_Hash !! wikitext [http://www.example.com test] !! html[http://www.example.com test]
!! end !! test Magic link: invalid character NUL (stripped) !! wikitext http://www.example.com test !! html !! end !! test Magic link: invalid character backspace (preserved) !! options preprocessor=Preprocessor_Hash !! wikitext http://www.example.com test !! html !! end !! test External links: tab character !! wikitext [http://www.example.com Alice in Wonderland] !! html !! end !! test U+0338, bare and as entity !! config wgParserEnableLegacyHeadingDOM=false wgFragmentMode=[ "html5" ] !! options showtocdata parsoid={ "modes": [ "wt2html", "html2html" ], "wrapSections": true } !! wikitext Header == ̸ One & == ̸ Text == ̸ Two & == ̸ Text !! metadata Sections: h2 index:1 toclevel:1 number:1 title:Parser_test off:8 anchor/linkAnchor:̸_One_& line:̸ One & h2 index:2 toclevel:1 number:2 title:Parser_test off:42 anchor/linkAnchor:̸_Two_& line:̸ Two & !! html/phpHeader
̸ Text
̸ Text
!! html/parsoidHeader
̸ Text
̸ Text
hiho
!! html/parsoidhiho
!! end