]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/mdwn.pm
update for rename of recentchanges.mdwn to json.tl.ph.mdwn
[git.ikiwiki.info.git] / IkiWiki / Plugin / mdwn.pm
index eefa29a9711204541c52b2c83fa959103fc05e67..9158a477beb5bdbd98855253a57dafa21ca53fb3 100644 (file)
@@ -56,7 +56,7 @@ sub checkconfig () {
        $config{mdwn_alpha_lists} = 0 unless defined $config{mdwn_alpha_lists};
 }
 
-my $markdown_sub;
+our $markdown_sub;
 sub htmlize (@) {
        my %params=@_;
        my $content = $params{content};
@@ -77,9 +77,7 @@ sub htmlize (@) {
                                $markdown_sub=sub {
                                        my %flags=( use_metadata => 0 );
 
-                                       if ($config{mdwn_footnotes}) {
-                                               $flags{disable_footnotes}=1;
-                                       }
+                                       $flags{disable_footnotes}=not $config{mdwn_footnotes};
 
                                        Text::MultiMarkdown::markdown(shift, \%flags);
                                }