Open billcxx opened 3 years ago
thank you for reporting this! i'm having a look
Hi, I love the plugin! I can't open a pull request, but to fix it you just need to change the code on line 156 in index.js...
- if (!(key in citations)) {
+ if (!(citations.includes(key))) {
Basically, in
is used to check if a property exists for a given object while includes
checks if an element is already present in an array. Hope it helps!
As shown in the below image, I'm trying to use the reference 2 and 3 a second time. And two problems occurs:
This is the line I add to package.json to load the gatsby-remark-bibliography plugin,
And here is the what I wrote in my md file