Closed jcarpenter closed 2 years ago
I think the CSL Plugins docs may need to change
Cite.plugins.output.config.get('csl')
toCite.plugins.config.get('@csl')
?
True, I think the docs are changed locally but I forgot to build them.
After some struggling, I found
Cite.plugins.list()
under the plugins docs, used it, found thatcsl
is actually@csl
.
That's been bugging me too. I think I'll change it before v0.5.0
.
I’ve been bitten by this as well.
By the way, this project is great! I’m very happy I’ve found it.
It seems that Cite.CSL.register.addTemplate()
works as well.
i am facing this problem while using CSL plugin?
How are you importing citation.js?
Let's carry this on in https://github.com/larsgw/citation.js/issues/219 if you want.
I think the CSL Plugins docs may need to change
Cite.plugins.output.config.get('csl')
toCite.plugins.config.get('@csl')
?Similar to #161, I was getting
undefined
errors whenever I tried to callCite.plugins.config.get
. I was following the instructions in the CSL Plugins docs. After some struggling, I found Cite.plugins.list() under the plugins docs, used it, found thatcsl
is actually@csl
. I then tried to register my CSL template withCite.plugins.config.get('@csl')
, and found it worked.Here's the full working code excerpt:
citation-js@0.5.0-alpha.4, node v12.12.0, macOS 10.15