Writing a Book with Pandoc, Make, and Vim
Pandoc and make totally.  I have a personal workflow for all my academic articles; which is expanding to books, and which involves chapters stored in individual markdown files in github, pandoc to build with a makefile to tie it all together[1], and zotero spitting out CSL json bibliographies, etc.Honestly, though, I find writing in Markdown in vim/emacs to be really unergonomic.  The unit of writing in code is the line (or the function or the block or the s-expression or whatever depending on language and task---something comprehensible to vim and emacs anyway); but with prose in Markdown the unit of writing is much less defined---sometimes sentence, sometimes paragraph, sometimes clause... and the movements just don't work for me there.So I just do the writing in Sublime Text.  Seems to work for me.[1] But I'm not nearly good enough with make to do complicated things like back up or build every file in a directory.  I hacked together my own backup utility @ https://github.com/paultopia/writingBackup