Generate bib file from markdown doc that refers to betterbibtex keys
I have a markdown file that references my zotero library via citekeys generated by betterbibtex. I now have to go through and update the references' metadata, and it would be much easier if I could collate them all into a collection automatically. I just found out that Reference Extractor (https://rintze.zelle.me/ref-extractor/) does this pretty well for word and libreoffice documents, but this will not work for documents that have been converted from markdown to word or libreoffice using pandoc since they do not have an inherent connection with zotero.
Is there a tool out there already that compiles the list of citekeys in a document, checks against the betterbibtex export, and generates a bib file based on that subset? This seems relatively straightforward, but I'm wondering if anyone has done this before, which would save me lots of time and effort to do this myself (with my minimal and shoddy scripting skills).
Is there a tool out there already that compiles the list of citekeys in a document, checks against the betterbibtex export, and generates a bib file based on that subset? This seems relatively straightforward, but I'm wondering if anyone has done this before, which would save me lots of time and effort to do this myself (with my minimal and shoddy scripting skills).
The scanner function also supports markdown, you do need pandoc installed and findable through the PATH system variable.
It's awesome!
(As an aside, if you are writing in markdown and using pandoc’s default citation engine, you should use CSL YAML or CSL JSON, not BibTeX, as your citation data format. BibTeX will tend to produce inaccurate citations for non-book/journal citations.)