discount support
[ikiwiki.git] / IkiWiki / Plugin / mdwn.pm
index b892eabee29be50387fa493baafd5dbd6d1024a8..0dc0cc336d51556364bf968014158d2d9c0a0620 100644 (file)
@@ -50,6 +50,12 @@ sub htmlize (@) {
                                }
                        }
                }
                                }
                        }
                }
+               if (! defined $markdown_sub) {
+                       eval q{use Text::Markdown::Discount};
+                       if (! $@) {
+                               $markdown_sub=\&Text::Markdown::Discount::markdown;
+                       }
+               }
                if (! defined $markdown_sub) {
                        eval q{use Text::Markdown};
                        if (! $@) {
                if (! defined $markdown_sub) {
                        eval q{use Text::Markdown};
                        if (! $@) {