projects
/
ikiwiki.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
* Work on firming up the plugin interface:
[ikiwiki.git]
/
IkiWiki
/
Plugin
/
wikitext.pm
1
#!/usr/bin/perl
2
# WikiText markup
3
package IkiWiki::Plugin::wikitext;
4
5
use warnings;
6
use strict;
7
use IkiWiki;
8
use Text::WikiFormat;
9
10
sub import { #{{{
11
hook(type => "htmlize", id => "wiki", call => \&htmlize);
12
} # }}}
13
14
sub htmlize (@) { #{{{
15
my %params=@_;
16
my $content = $params{content};
17
18
return Text::WikiFormat::format($content, undef, { implicit_links => 0 });
19
} # }}}
20
21
1