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