blob: dca1520bdaf04e1cbc68e49ea7404100e09d391c (
plain)
- #!/usr/bin/perl
- # work around smart quote handling not smart enough
- use warnings;
- use strict;
- use Path::Tiny;
- use Regexp::Common qw(net);
- my $infile = shift;
- my $outfile = shift || $infile;
- $_ = path($infile)->slurp_utf8;
- # "pandoc --smart" apparently ignores en- and em-dashes with mediawiki.
- s/Space,Str "--",Space/Space,Str "\\8212",Space/g;
- path($outfile)->spew_utf8($_);
- 1;
|