summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/wikitext.pm
blob: 95182f870c671a8c758e35231df93494464ad889 (plain)
  1. #!/usr/bin/perl
  2. # WikiText markup
  3. package IkiWiki::Plugin::wikitext;
  4. use warnings;
  5. use strict;
  6. use IkiWiki;
  7. use Text::WikiFormat;
  8. sub import { #{{{
  9. hook(type => "htmlize", id => "wiki", call => \&htmlize);
  10. } # }}}
  11. sub htmlize (@) { #{{{
  12. my %params=@_;
  13. my $content = $params{content};
  14. return Text::WikiFormat::format($content, undef, { implicit_links => 0 });
  15. } # }}}
  16. 1