Subject: | Content of <pre> blocks should behave as if <nowiki> were applied |
Special wiki characters should have no effect within <pre> blocks:
INPUT:
<pre>[[foo]]</pre>
MEDIAWIKI:
<pre>[[foo]]</pre>
Text::MediaWiki:
<pre><a href='foo'>foo</a></pre>
Here's a slightly more complex example showing how this can cause things
to go wrong in unexpected ways:
INPUT:
<pre>[1, 2, 3, [4, 5, 6]]</pre>
MEDIAWIKI:
<pre>[1, 2, 3, [4, 5, 6]]</pre>
Text::MediaWiki:
<pre>[1, 2, 3, <a href='4,'>5, 6</a>]</pre>
This is with Text::MediaWiki 0.05, Perl v5.8.6, Mac OS X 10.4.8.
Also tested on Red Hat Enterprise Linux 3 ES (Perl v5.8.0).