X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/1b4571acd57294e4048e0dc61b1146cf4310913e..64aa6ebf774f512280709a7d7233488f3a3923c0:/t/mdwn.t?ds=inline diff --git a/t/mdwn.t b/t/mdwn.t index 93b8bd8e9..ca3180139 100755 --- a/t/mdwn.t +++ b/t/mdwn.t @@ -8,6 +8,7 @@ BEGIN { use_ok("IkiWiki"); } %config=IkiWiki::defaultconfig(); $config{srcdir}=$config{destdir}="/dev/null"; +$config{disable_plugins}=["htmlscrubber"]; IkiWiki::loadplugins(); IkiWiki::checkconfig(); @@ -41,4 +42,25 @@ like(IkiWiki::htmlize("foo", "foo", "mdwn", "This works[^1]\n\n[^1]: Sometimes it doesn't.\n"), qr{
This works.*\s*
}s,
+ "code blocks are enabled by default");
+ like(IkiWiki::htmlize("foo", "foo", "mdwn",
+ "\s*[#]!/bin/sh\s*
\s*