What I’m trying to do
I’m trying to export a document from Markdown to produce a Word (.docx) document with citations and a reference list. I’m using the Enhancing Exports plugin with these extra arguments in the plugin settings:
–metadata bibliography=C:\xxxxxxxxx\My_Library.json --citeproc --csl=C:\xxxxxxxxx\apa.csl
My_Library.json is a file autoexported from Zotero via Better BibTex. The format is Better CSL JSON format.
For example, a Markdown document looking like this
Hi! [@smith2024booktitle]
would render me a Word document reading:
Hi! (Smith, 2024)
Smith, J. (2024). Book title. Publisher name.
This has worked perfectly in the past, but now the export fails and I keep getting this error:
Error reading bibliography file C:\xxxxxxxxxxxx\My_Library.json: Error in $[529][‘date-parts’][0]: not a number.
Things I have tried
I have tried
- Updating Pandoc
- Updating Obsidian and all plugins
- Re-exported my Zotero library in Better CSL JSON format several times.
- Trying to export the same Markdown file via Zettlr using (1) Pandoc and (2) Zettlr’s internal Pandoc (and getting the same error message in both cases).
The problem seems to lie in Pandoc’s inability to interpret the JSON file, but I cannot find any information about how to fix it. Again, this procedure used to work before, but it doesn’t any longer, which makes me think I’ve screwed something up on the Obsidian end. Happy for help with any solutions or workarounds to get my documents exported and properly formated.