Well, assuming that markdown.pl is somewhere in your path and is executable do the following: Filter through command (Option+Shift+R) Enter "markdown.pl" for the command. Choose input->document Choose output->replace document And you're done!