4 ms·
Pandoc is a great tool for anyone using Markdown to write, too, above and beyond the conversion capabilities. I use it to write my website gwern.net using Pando
by gwern 13y ago
Pandoc is a great tool for anyone using Markdown to write, too, above and beyond the conversion capabilities. I use it to write my website gwern.net using Pandoc+Hakyll, but I also use Pandoc for other things because of its API.
I generate my book review page (http://www.gwern.net/Book%20reviews http://www.gwern.net/Book%20reviews) from my GoodReads CSV export, but that's not all.
I also have functions to add support for Wikipedia links in my Markdown files (so I can write '[Adolf Hitler](!Wikipedia)' rather than '[Adolf Hitler](http://en.wikipedia.org/wiki/Adolf_Hitler)' http://en.wikipedia.org/wiki/Adolf_Hitler)', which is convenient and a huge time-saver for longer more complex article titles).
And besides that, I have static checks of my pages via the Pandoc API: I have 2 scripts which parse Markdown files, 'markdown-length-checker' and 'markdown-footnote-length'. length-checker is checking for the case where I have too many spaces and a line suddenly becomes a fixed-width line of 200 characters or something awful like that (surprisingly easy to do with lists). footnote-length parses the file for all the footnotes, extracts them, sees whether their bodies are longer than 2400 characters, and warns if any are (since 2400 characters means the footnote needs some work).