#!/usr/bin/perl # WikiCreole markup # based on the WikiText plugin. package IkiWiki::Plugin::creole; use warnings; use strict; use IkiWiki 3.00; sub import { hook(type => "getsetup", id => "creole", call => \&getsetup); hook(type => "htmlize", id => "creole", call => \&htmlize); } sub getsetup { return plugin => { safe => 1, rebuild => 1, # format plugin }, } sub htmlize (@) { my %params=@_; my $content = $params{content}; eval q{use Text::WikiCreole}; return $content if $@; # don't parse WikiLinks, ikiwiki already does creole_customlinks(); creole_custombarelinks(); return creole_parse($content); } 1
summaryrefslogtreecommitdiff
path: root/tags/37/7e/20170119200230.C241E1C14F@jawa.homebase.dk/unread
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
committerJonas Smedegaard <dr@jones.dk>2023-06-27 09:35:08 +0200
commitfd54908da2b05c526dd3bee9b6dcd093214a220d (patch)
treec69c845069c99d1d01044f6fafda7c08433329c6 /tags/37/7e/20170119200230.C241E1C14F@jawa.homebase.dk/unread
parentba46132213560cf3335d53560d519c0ec0190da2 (diff)
Diffstat (limited to 'tags/37/7e/20170119200230.C241E1C14F@jawa.homebase.dk/unread')