summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/typography.pm
blob: 6c5f06b0f3928aa7550a9c6fb32b92ef1891f73d (plain)
  1. #!/usr/bin/perl
  2. package IkiWiki::Plugin::typography;
  3. use warnings;
  4. use strict;
  5. use IkiWiki;
  6. use Text::Typography;
  7. sub import { #{{{
  8. IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize);
  9. } # }}}
  10. sub sanitize (@) { #{{{
  11. my %params=@_;
  12. return Text::Typography::typography($params{content});
  13. } # }}}
  14. 1