I’m still working on a workflow for a bibliography. I’ve moved this to a separate document with the howto steps, and was hoping to import this as a single variable for tidyness.
However, importing formattedBibliography into another document doesn’t give the right formatting, and ignores my custom CSL entirely. Importing it as HTML as exportedBibliography gives the error RuntimeError: exportedBibliography could not be resolved. I’m using import { formattedBibliography, exportedBibliography } from "@resistancelab/taser-report-bibliography" to test this.
I’m aware the CSL import is very long and requires a notebook reload so this is the main thing I have my eye on but it would be great to get some clarity here on why it’s not working and/or get some better error messages.
Not quite. Previously I assumed that config was something that you pass around or reference, but that doesn’t seem to be the case. Instead it’s merely a way for you to modify the Cite object. If I were to import formattedBibliography without also importing config, I’d still be missing the md template.
I’d recommend to perform your initialization before returning the Cite object: