Joey Hess wrote:
> Bernd Zeimetz wrote:
>> libtext-wikicreole-perl is sitting in NEW, a first version of the plugin
>> is attached to this mail - there's a lot of stuff to configure in the
>> creole module, so it is possible to tune more stuff, but for now it
>> works well.
>
> I think you forgot the attachment..
meh, stupid me!
attached now. really :)
--
Bernd Zeimetz Debian GNU/Linux Developer
GPG Fingerprint: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
#!/usr/bin/perl
# WikiCreole markup
# based on the WikiText plugin.
package IkiWiki::Plugin::creole;
use warnings;
use strict;
use IkiWiki 2.00;
sub import { #{{{
hook(type => "htmlize", id => "creole", call => \&htmlize);
} # }}}
sub htmlize (@) { #{{{
my [EMAIL PROTECTED];
my $content = $params{content};
eval q{use Text::WikiCreole};
return $content if $@;
return Text::WikiCreole::creole_parse($content);
} # }}}
1