Skip to content

Commit

Permalink
Merge pull request #48 from fadhleryani/patch-1
Browse files Browse the repository at this point in the history
updated "pandoc" style regex to accept some punctuation
  • Loading branch information
shyamd authored Nov 3, 2020
2 parents 46808a1 + eefc242 commit da26869
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkdocs_bibtex/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def on_config(self, config):
self.cite_regex = re.compile(r"\@(\w+)")
self.insert_regex = r"\@{}"
elif cite_style == "pandoc":
self.cite_regex = re.compile(r"\[\@(\w+)\]")
self.cite_regex = re.compile(r"\[\@((?:(?:\w+)[\-:]?)+)\]")
self.insert_regex = r"\[@{}\]"
else:
raise Exception("Invalid citation style: {}".format(cite_style))
Expand Down

0 comments on commit da26869

Please sign in to comment.