2 ms·
One of the nifty applications of this is Gitit: store your files in a normal Git or Darcs repo, and then users can export the webpages in 16 formats. And you c
by gwern 15y ago
One of the nifty applications of this is Gitit: store your files in a normal Git or Darcs repo, and then users can export the webpages in 16 formats.
And you can easily script it in Haskell - I wrote one plugin that archives external links in the Internet Archive & WebCitation, and another link which adds interwiki syntax to markdown, eg. '[Plato](!Wikipedia)' or '[abstruse](!Wiktionary)' or '[scanl](!Hoogle)' or '[gitit](!Hackage)'.
- johkra 15y agoDid you extend Pandoc or Gitit? I would be very interested in extending/changing Pandoc slightly, but so far I got along with doing my changes with sed and writing some inline LaTeX. If you extended Pandoc, do you mind giving a pointer to your source? I write Haskell poorly, so an example would be appreciated.
- gwern 15y agoThe plugins are bundled with Gitit. See: https://github.com/jgm/gitit/blob/master/plugins/Interwiki.hs https://github.com/jgm/gitit/blob/master/plugins/Interwiki.h... https://github.com/jgm/gitit/blob/master/plugins/Subst.hs https://github.com/jgm/gitit/blob/master/plugins/Subst.hs https://github.com/jgm/gitit/blob/master/plugins/WebArchiver.hs https://github.com/jgm/gitit/blob/master/plugins/WebArchiver... They are meant for use with Gitit, but they are easily adapted for other purposes. For example, the archive code was easily adapted into a script to read Markdown files and spit out external links to stdout: http://groups.google.com/group/pandoc-discuss/browse_thread/thread/42c29d0b66dcdb14/347498f0234cc1dc http://groups.google.com/group/pandoc-discuss/browse_thread/...