diff --git a/bin/MultiMarkdown.pl b/bin/MultiMarkdown.pl index 8f36adf..487c454 100755 --- a/bin/MultiMarkdown.pl +++ b/bin/MultiMarkdown.pl @@ -1801,9 +1801,9 @@ sub _DoFootnotes { if (defined $g_footnotes{$id} ) { $g_footnote_counter++; if ($g_footnotes{$id} =~ /^(

)?glossary:/i) { - $result = "$g_footnote_counter"; + $result = "$g_footnote_counter"; } else { - $result = "$g_footnote_counter"; + $result = "$g_footnote_counter"; } push (@g_used_footnotes,$id); } @@ -1851,9 +1851,9 @@ sub _PrintFootnotes{ $glossary . ":

"; }egsx; - $result.="

  • $footnote ↩$footnote_closing_tag
  • \n\n"; + $result.="
  • $footnote ↩$footnote_closing_tag
  • \n\n"; } else { - $result.="
  • $footnote ↩$footnote_closing_tag
  • \n\n"; + $result.="
  • $footnote ↩$footnote_closing_tag
  • \n\n"; } } $result .= "\n"; @@ -1878,7 +1878,7 @@ sub Header2Label { } sub id2footnote { - # Since we prepend "fn:", we can allow leading digits in footnotes + # Since we prepend "fn_", we can allow leading digits in footnotes my $id = shift; my $footnote = lc $id; $footnote =~ s/[^A-Za-z0-9:_.-]//g; # Strip illegal characters