creole: New plugin from Bernd Zeimetz. Closes: #486930

master
Joey Hess 2008-06-19 19:11:03 -04:00
parent 3a204fabbb
commit 98095ccac4
5 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#!/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 %params=@_;
my $content = $params{content};
eval q{use Text::WikiCreole};
return $content if $@;
return Text::WikiCreole::creole_parse($content);
} # }}}
1

1
debian/changelog vendored
View File

@ -15,6 +15,7 @@ ikiwiki (2.51) UNRELEASED; urgency=low
* Version the suggests of xapian-omega to a version known to be new enough
to work with ikiwiki. Reportedly, version 0.9.9 is too old to work.
Closes: #486592
* creole: New plugin from Bernd Zeimetz. Closes: #486930
-- Joey Hess <joeyh@debian.org> Sun, 15 Jun 2008 15:03:33 -0400

4
debian/copyright vendored
View File

@ -92,6 +92,10 @@ Files: hnb.pm
Copyright: Copyright (C) 2008 Axel Beckert <abe@deuxchevaux.org>
License: GPL-2+
Files: creole.pm
Copyright: Copyright (C) 2008 Bernd Zeimetz <bernd@bzed.de>
License: GPL-2+
Files: doc/logo/*
Copyright: © 2006 Recai Oktaş <roktas@debian.org>
License: GPL-2+

View File

@ -0,0 +1,16 @@
[[template id=plugin name=creole author="BerndZeimetz"]]
[[tag type/format]]
This plugin allows ikiwiki to process pages written in
[WikiCreole](http://www.wikicreole.org/) format.
To use it, you need to have the [[cpan Text::WikiCreole]] perl
module installed, enable the plugin, then files with the extention `.creole`
will be processed as creole.
The creole format is based on common elements across many different
wiki markup formats, so should be fairly easy to guess at. There is also a
[CheatSheet](http://www.wikicreole.org/wiki/CheatSheet).
Links are standard [[WikiLinks|ikiwiki/WikiLink]]. Links and
[[PreProcessorDirectives]] inside `{{{ }}}` blocks are still expanded,
since this happens before the creole format is processed.

View File

@ -14,3 +14,5 @@ Syntax file for vim: http://www.peter-hoffmann.com/code/vim/ (Since a typical i
> Should be pretty easy to add a plugin to do it using [[cpan
> Text::WikiCreole]]. --[[Joey]]
[[done]]