Skip to content

Commit

Permalink
Cache pandoc-citekey (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdbenito authored Apr 4, 2024
1 parent e1b4c54 commit 602c3ec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mkdocs_bibtex/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import requests
import tempfile
from collections import OrderedDict
from functools import lru_cache
from itertools import groupby
from pathlib import Path

Expand Down Expand Up @@ -100,6 +101,7 @@ def _convert_pandoc_new(bibtex_string, csl_path):
return citation.strip()


@lru_cache(maxsize=1024)
def _convert_pandoc_citekey(bibtex_string, csl_path, fullcite):
"""
Uses pandoc to convert a markdown citation key reference
Expand Down

0 comments on commit 602c3ec

Please sign in to comment.