fix the nodiscount setting
authorJoey Hess <joey@kitenet.net>
Mon, 23 Jan 2012 22:15:14 +0000 (18:15 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 23 Jan 2012 22:15:14 +0000 (18:15 -0400)
IkiWiki/Plugin/mdwn.pm

index 3c3fc9579fc7fa78959fad3e4ddf7b3bf67ce003..430194bffdcc6444f34036709d9dc3767187af85 100644 (file)
@@ -58,7 +58,7 @@ sub htmlize (@) {
                        }
                }
                if (! defined $markdown_sub &&
                        }
                }
                if (! defined $markdown_sub &&
-                   exists $config{nodiscount} && ! $config{nodiscount}) {
+                   (! exists $config{nodiscount} || ! $config{nodiscount})) {
                        eval q{use Text::Markdown::Discount};
                        if (! $@) {
                                $markdown_sub=sub {
                        eval q{use Text::Markdown::Discount};
                        if (! $@) {
                                $markdown_sub=sub {