kennethreitz/pyandoc — pull request #6 by yoavram (2012-10-12 08:23:31+00:00)
Title: Added bibliography support to pyandoc

I wanted to use *Pandoc* for parsing *Markdown* files with *citations*.
Pandoc supports that by giving a *--bibliography=FILE* command-line argument with a bibliography file (like *.bib*).
See the [Pandoc documentation](http://johnmacfarlane.net/pandoc/README.html#citations) for more details on that.

But *pyandoc* did not support that. So I changed it.

- Added and *add_argument* method to the *Document* class where you can give any argument listed in the *Pandoc* documentation.
For example, want a Table of Contents? Do *add_argument("toc")*.
- Added an *bib(bibfile)* method. This method will check that the file given exists and will pass it to the arguments with the *bibliography=* prefix.
- Same for *csl(cslfile)* for specifing an *CSL* file.