Site Tools


blog:2020:04:28:vim-ale-pandoc

Pandoc as a vim ale fixer

dcai 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 readme.md --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:

Discussion

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