summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/wikitext.pm
blob: 5c46c565cc7b95100c3124fa9a3c496bb4afc502 (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. IkiWiki::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