lukesmurray / linked-notes-vscode

vscode extension for taken Zettelkasten inspired markdown notes.
https://marketplace.visualstudio.com/items?itemName=lukesmurray.linked-notes-vscode
0 stars 0 forks source link

fix if csl has no author the extension crashes! #22

Closed lukesmurray closed 4 years ago

lukesmurray commented 4 years ago

for example if we save a wiki page to the bib text there is no author.

really we should pick apart name and date variables in CSL! Currently we make a bunch of assumptions and only use common values.

https://github.com/citation-style-language/schema/blob/a6928c394bd0778d539e22c876c4da53672ea188/csl-data.json#L356-L449

lukesmurray commented 4 years ago

The issue is in the bibTex code for generating completions. We'll replace this code mostly if we switch to using csl json but this code will still be called.

https://github.com/lukesmurray/linked-notes-vscode/blob/70f530b3b1a9e799d5262643a303fbc2374e9cbe/src/reducers/bibTex.ts#L132-L160