Site Tools


Pandoc as a vim ale fixer

Dongsheng Cai 28 Apr 20

Today I was trying to convert some markdown files to dokuwiki format with pandoc, it came into my mind that I could use pandoc to format plaintext files, for example, github flavored markdown:

pandoc -f gfm -t gfm --columns=88

This could format the content and wrap line at column 88.

So I quickly hacked together an ale fixer which could automatically fix formatting issues on save for pretty much all plaintext files, markdown, wiki, org, even csv, you name it :)

Some interesting findings today:


Enter your comment:
blog/2020/04/28/vim-ale-pandoc.txt · Last modified: 2020-11-10 by dcai