7 my $file = $ARGV[0] || die;
9 open(IF, $file) || die;
14 $text = decode('utf8', $text);
16 $text =~ s/^\*\*/== /mg;
17 $text =~ s/^\- / * /mg;
18 $text =~ s/^\-- / * /mg;
19 $text =~ s/^\--- / * /mg;
24 $text = encode('utf8', $text);
26 my $outd = 'converted';
28 open(OF, "> $outd/$file") || die;