Skip to content

Commit

Permalink
fix citation numbering
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Feb 21, 2022
1 parent 3547099 commit 576b54c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mkdocs_bibtex/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,10 @@ def format_citations(self, cite_keys):

# 3. Construct quads
quads = []
for key_set in cite_keys:
for n, key_set in enumerate(cite_keys):
for key in key_set.strip().strip("]").strip("[").split(";"):
key = key.strip().strip("@")
quads.append((key_set, key, "1", self.all_references[key]))
quads.append((key_set, key, str(n + 1), self.all_references[key]))

return quads

Expand Down

0 comments on commit 576b54c

Please sign in to comment.