diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 22:08:04 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-07-03 22:08:04 +0000 |
commit | 6551c1e5609967c0c7f947fa0e9d85d24e454d37 (patch) | |
tree | 9cef8840dbfb06b90a42c49a30f0117e8e487a00 /t | |
parent | 7ea8df24b32a36687cfea94e2b84272777562325 (diff) | |
download | ikiwiki-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')
-rwxr-xr-x | t/crazy-badass-perl-bug.t | 4 | ||||
-rwxr-xr-x | t/htmlize.t | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/t/crazy-badass-perl-bug.t b/t/crazy-badass-perl-bug.t index 69e9731d8..f54f27c4b 100755 --- a/t/crazy-badass-perl-bug.t +++ b/t/crazy-badass-perl-bug.t @@ -14,6 +14,6 @@ BEGIN { use_ok("IkiWiki::Render"); } %IkiWiki::config=IkiWiki::defaultconfig(); $IkiWiki::config{srcdir}=$IkiWiki::config{destdir}="/dev/null"; IkiWiki::checkconfig(); -ok(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test1.mdwn"))); -ok(IkiWiki::htmlize(".mdwn", IkiWiki::readfile("t/test3.mdwn")), +ok(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test1.mdwn"))); +ok(IkiWiki::htmlize("mdwn", IkiWiki::readfile("t/test3.mdwn")), "wtf?") for 1..100; 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="ó" />\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"); |