<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl
# WikiText markup
package IkiWiki::Plugin::wikitext;

use warnings;
use strict;
use IkiWiki 2.00;

sub import { #{{{
	hook(type =&gt; "getsetup", id =&gt; "wiki", call =&gt; \&amp;getsetup);
	hook(type =&gt; "htmlize", id =&gt; "wiki", call =&gt; \&amp;htmlize);
} # }}}

sub getsetup () { #{{{
	return
		plugin =&gt; {
			safe =&gt; 0, # format plugin
			rebuild =&gt; undef,
		},
} #}}}


sub htmlize (@) { #{{{
	my %params=@_;
	my $content = $params{content};

	eval q{use Text::WikiFormat};
	return $content if $@;
	return Text::WikiFormat::format($content, undef, { implicit_links =&gt; 0 });
} # }}}

1
</pre></body></html>