R script to extract pandoc-styled citations from markdown file and create local .bib file from a master BibTeX library.