Reformatting Nested Markdown Lists in Editorial

August 20, 2013 by Ed
Tags: python, editorial

For a while now I've wanted to write up a quick Python script to fix up numbering in a nested Markdown list. Most of the Markdown editors I use on iOS support smart list continuation, but very few (if any) will correct the numbering if you have to move lines around or insert new lines in the middle of a numbered list.

I was originally going to write this as a script to use in Pythonista, but never got around to it. The recent release of Editorial for the iPad sparked my interest in this again, and after reading Federico Viticci's review of the app, I decided to build this as an Editorial workflow instead.

I'll probably port this over to Pythonista in the future, but in the meantime here is a workflow to use in Editorial: Format as List