Is there anyway to format the markdown?

I am switching to drafts and I have had most text editors that I previously used for markdown set to autoformat markdown content using prettier or similar. This is most useful for tables where columns can be padded to align. Is there anyway to do this in Drafts?


Prettier runs on node, so if you just want to run that on the Mac, you could probably do something straightforward utilising a shell scripting action step to push the Draft content out to Prettier, and then replace the content on return.

If you did want something cross-platform you could try to Browserify Prettier, find an alternative JavaScript library to do the formatting that is independent of node, or write your own. Then you could include that from a standard script action and process the draft content accordingly.

Hope that helps.