diff --git a/mkdocs_bibtex/plugin.py b/mkdocs_bibtex/plugin.py index 3c1cd44..33bce51 100644 --- a/mkdocs_bibtex/plugin.py +++ b/mkdocs_bibtex/plugin.py @@ -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))