file to name it for gitweb.
summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/mdwn.pm
blob: 11f3f0137627643fe285e0464b59b2e0086b3f88 (plain)
  1. #!/usr/bin/perl
  2. # Markdown markup language
  3. package IkiWiki::Plugin::mdwn;
  4. use warnings;
  5. use strict;
  6. use IkiWiki 2.00;
  7. sub import { #{{{
  8. hook(type => "htmlize", id => "mdwn", call => \&htmlize);
  9. } # }}}
  10. my $markdown_sub;
  11. sub htmlize (@) { #{{{
  12. my %params=@_;
  13. my $content = $params{content};
  14. if (! defined $markdown_sub) {
  15. # Markdown is forked and splintered upstream and can be
  16. # available in a variety of forms. Support them all.
  17. no warnings 'once';
  18. $blosxom::version="is a proper perl module too much to ask?";