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

package IkiWiki::Plugin::typography;

use warnings;
use strict;
use IkiWiki;

sub import { #{{{
	IkiWiki::hook(type =&gt; "sanitize", id =&gt; "typography", call =&gt; \&amp;sanitize);
} # }}}

sub sanitize (@) { #{{{
	my %params=@_;

	eval q{use Text::Typography};
	return $params{content} if $@;

	return Text::Typography::typography($params{content});
} # }}}

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