blob: 11f3f0137627643fe285e0464b59b2e0086b3f88 (
plain)
- #!/usr/bin/perl
- # Markdown markup language
- package IkiWiki::Plugin::mdwn;
- use warnings;
- use strict;
- use IkiWiki 2.00;
- sub import { #{{{
- hook(type => "htmlize", id => "mdwn", call => \&htmlize);
- } # }}}
- my $markdown_sub;
- sub htmlize (@) { #{{{
- my %params=@_;
- my $content = $params{content};
- if (! defined $markdown_sub) {
- # Markdown is forked and splintered upstream and can be
- # available in a variety of forms. Support them all.
- no warnings 'once';
- $blosxom::version="is a proper perl module too much to ask?";
|