Skip to content

Commit

Permalink
parse multiline markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Jan 20, 2022
1 parent d19babf commit 3af3908
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 @@ -76,7 +76,7 @@ def _convert_pandoc_new(bibtex_string, csl_path):
citation_regex = re.compile(r"\{\.csl-left-margin\}\[(.*)\]\{\.csl-right-inline\}")
try:

citation = citation_regex.findall(markdown)[0]
citation = citation_regex.findall(markdown.replace("\n", " "))[0]
except IndexError:
citation = markdown
return citation
Expand Down

0 comments on commit 3af3908

Please sign in to comment.