aboutsummaryrefslogtreecommitdiff
path: root/t/htmlize.t
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-03 22:08:04 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-07-03 22:08:04 +0000
commit6551c1e5609967c0c7f947fa0e9d85d24e454d37 (patch)
tree9cef8840dbfb06b90a42c49a30f0117e8e487a00 /t/htmlize.t
parent7ea8df24b32a36687cfea94e2b84272777562325 (diff)
downloadikiwiki-6551c1e5609967c0c7f947fa0e9d85d24e454d37.tar
ikiwiki-6551c1e5609967c0c7f947fa0e9d85d24e454d37.tar.gz
* Support htmlize plugins and make mdwn one such plugin, which is enabled by
default (of course!). Based on a patch by Faidon Liambotis.
Diffstat (limited to 't/htmlize.t')
-rwxr-xr-xt/htmlize.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/htmlize.t b/t/htmlize.t
index 742b6e2bc..687eb03a8 100755
--- a/t/htmlize.t
+++ b/t/htmlize.t
@@ -12,10 +12,10 @@ BEGIN { use_ok("IkiWiki::Render"); }
$IkiWiki::config{srcdir}=$IkiWiki::config{destdir}="/dev/null";
IkiWiki::checkconfig();
-is(IkiWiki::htmlize(".mdwn", "foo\n\nbar\n"), "<p>foo</p>\n\n<p>bar</p>\n",
+is(IkiWiki::htmlize("mdwn", "foo\n\nbar\n"), "<p>foo</p>\n\n<p>bar</p>\n",
"basic");
-is(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test1.mdwn")),
+is(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test1.mdwn")),
Encode::decode_utf8(qq{<p><img src="../images/o.jpg" alt="o" title="&oacute;" />\nóóóóó</p>\n}),
"utf8; bug #373203");
-ok(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test2.mdwn")),
+ok(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test2.mdwn")),
"this file crashes markdown if it's fed in as decoded utf-8");