Skip to content

Commit

Permalink
ensure cite_keys are unique
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Apr 3, 2022
1 parent 6aa672b commit 92c0f56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mkdocs_bibtex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def find_cite_keys(markdown):

cite_regex = re.compile(r"(\[(?:@\w+;{0,1}\s*)+\])")
cite_keys = cite_regex.findall(markdown)
return list(cite_keys)
return list(OrderedDict.fromkeys(cite_keys).keys())


def insert_citation_keys(citation_quads, markdown):
Expand Down

0 comments on commit 92c0f56

Please sign in to comment.