Hacker News new | ask | show | jobs
by johkra 5486 days ago
Did 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.

1 comments

The plugins are bundled with Gitit. See:

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/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/...