diff options
author | Amitai Schleier <schmonz-web-ikiwiki@schmonz.com> | 2019-09-04 19:01:28 -0400 |
---|---|---|
committer | Amitai Schleier <schmonz-web-ikiwiki@schmonz.com> | 2019-09-04 19:01:28 -0400 |
commit | e642784901ba022983b4bc4cc806a2d1d774cc4b (patch) | |
tree | c174750e44de6e154766f4bfc91fd4bf2471ffb5 /IkiWiki/Plugin | |
parent | 4bc36186a761ee2df06e42a6184ceed5dc293cfb (diff) | |
download | ikiwiki-e642784901ba022983b4bc4cc806a2d1d774cc4b.tar ikiwiki-e642784901ba022983b4bc4cc806a2d1d774cc4b.tar.gz |
Fix inverted footnote config with MultiMarkdown.
Bug spotted and fix from Giuseppe Bilotta <giuseppe.bilotta@gmail.com>.
Extend mdwn tests to cover MultiMarkdown, where applicable.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/mdwn.pm | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/IkiWiki/Plugin/mdwn.pm b/IkiWiki/Plugin/mdwn.pm index eefa29a97..9158a477b 100644 --- a/IkiWiki/Plugin/mdwn.pm +++ b/IkiWiki/Plugin/mdwn.pm @@ -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); } |