Sending Taskpaper formatted Drafts to Things

Hi everyone! I was wondering if anyone has a good workflow for sending drafts written in Taskpaper syntax to Things, or if someone with knowledge of scripting could help me modify the amazing Things Parser action for Taskpaper instead of Markdown. I tried changing the beginsWithDelimiter and startsWith to endsWithDelimiter and endsWith, but that didn’t seem to do the trick.

Thanks for your help!

If you’re on a device that can run Ruby I’d just pipe it through this script:

Cool, thanks! I’m getting the following script error when I turn that into a Drafts action.

Script Error: SyntaxError: Invalid character: ‘#’
Line number: 2, Column undefined

I have ftools-0.0.0 installed and am running off of /Users/myusername/.rubies/ruby-2.7.1/bin/ruby on Mac OS Catalina. Do I need to update ftools (and if so, how? Getting it installed took an embarrassing amount of brainpower on my part…)

Thanks for your help!