* Add typography (SmartyPants) plugin by Recai.
parent
75594937c4
commit
c7140ad90b
|
@ -0,0 +1,20 @@
|
||||||
|
#!/usr/bin/perl
|
||||||
|
|
||||||
|
package IkiWiki::Plugin::typography;
|
||||||
|
|
||||||
|
use warnings;
|
||||||
|
use strict;
|
||||||
|
use IkiWiki;
|
||||||
|
|
||||||
|
sub import { #{{{
|
||||||
|
IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
|
||||||
|
} # }}}
|
||||||
|
|
||||||
|
sub sanitize (@) { #{{{
|
||||||
|
my %params=@_;
|
||||||
|
|
||||||
|
eval q{use Text::Typography};
|
||||||
|
return Text::Typography::typography($params{content});
|
||||||
|
} # }}}
|
||||||
|
|
||||||
|
1
|
|
@ -52,8 +52,9 @@ ikiwiki (1.27) UNRELEASED; urgency=low
|
||||||
whitespace-sensative situations. Closes: #387073
|
whitespace-sensative situations. Closes: #387073
|
||||||
* Patch from James Westby to make the location of the estseek.cgi script
|
* Patch from James Westby to make the location of the estseek.cgi script
|
||||||
configurable.
|
configurable.
|
||||||
|
* Add typography (SmartyPants) plugin by Recai.
|
||||||
|
|
||||||
-- Joey Hess <joeyh@debian.org> Mon, 18 Sep 2006 16:43:10 -0400
|
-- Joey Hess <joeyh@debian.org> Thu, 21 Sep 2006 16:27:44 -0400
|
||||||
|
|
||||||
ikiwiki (1.26) unstable; urgency=low
|
ikiwiki (1.26) unstable; urgency=low
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
[[template id=plugin name=typography included=1 author="[[Roktas]]"]]
|
||||||
|
[[tag type/format]]
|
||||||
|
|
||||||
|
This plugin, also known as
|
||||||
|
[SmartyPants](http://daringfireball.net/projects/smartypants/), translates
|
||||||
|
plain ASCII punctuation characters into ``smart'' typographic punctuation HTML
|
||||||
|
entities. To use it, you need to have the `Text::Typography` module installed.
|
Loading…
Reference in New Issue