Reformat Markdown Text

Does anyone have something that will reformat Markdown text? Not syntax highlighting but reformatting the source to word wrap at a specified column and align lists nicely. Example wrapping a column 20:

Now is the time for 
all good men to come
to the aid of their 
country

1. Item 1
2. This is an item 
   with wrapped text 
3. etc

Try:

pandoc -f markdown -t markdown --columns 20

And you can fine-tune the extensions used.

3 Likes