The parser seems to apply paragraph and pre-formating rules to the html returned
from parser hooks. But output from parser hooks
should be completely left alone. To see the effect, consider the following
parser hook:
function wfRenderFuckup( $input, $argv, &$parser ) {
return
'a b
c d
e f
gh
';
}
the following in wikitext:
xx<fuckup/>xx
produces this html:
<p>xxa b
</p><p>c d
</p>
<pre> e f
</pre>
<p>gh
xx
</p>
Disabling tidy does not have any effect on this. Tested with current HEAD.
This is extremely bad for parser hooks that try to output html or JS code loaded
from some file, where
preformated (human readable) code may be found.
Version: 1.9.x
Severity: normal