# 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

test

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

http://www.example.com test

!! end !! test Magic link: invalid character backspace (preserved) !! options preprocessor=Preprocessor_Hash !! wikitext http://www.example.com test !! html

http://www.example.com test

!! end !! test External links: tab character !! wikitext [http://www.example.com Alice in Wonderland] !! html

Alice in Wonderland

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

Header

̸ One &

[edit]

̸ Text

̸ Two &

[edit]

̸ Text

!! html/parsoid

Header

̸ One &

̸ Text

̸ Two &

̸ Text

!! end ## Note that there's a leading \r here that's necessary for the test !! test Stray carriage return in text !! options parsoid=wt2html !! wikitext hiho !! html/php

hiho

!! html/parsoid

hiho

!! end