Remove mdwn.pm checkconfig() definition.
authorW. Trevor King <wking@drexel.edu>
Wed, 6 Oct 2010 10:37:54 +0000 (06:37 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 6 Oct 2010 10:37:54 +0000 (06:37 -0400)
1) I'd never registered it.
2) We *don't* want to configure markdown_path by default, because when
   its defined it overrides any perl modules (e.g. Text::Markdown).

IkiWiki/Plugin/mdwn.pm

index dc5d8f01a93efbb2b9693272c3145fefff391c29..e29c91355d04d4b3ed6ee219abf52b7edd3ae37c 100644 (file)
@@ -27,19 +27,13 @@ sub getsetup () {
                },
                markdown_path => {
                        type => "string",
-                       example => 0,
+                       example => 0, # /usr/bin/markdown
                        description => "path to an external markdown binary",
                        safe => 0,
                        rebuild => undef,
                },
 }
 
-sub checkconfig () {
-       if (! defined $config{markdown_path}) {
-               $config{markdown_path}="/usr/bin/markdown";
-       }
-}
-
 my $markdown_sub;
 my $tempdir;
 sub htmlize (@) {