Skip to content

Commit

Permalink
Test two citations in one page
Browse files Browse the repository at this point in the history
Courtesy of @epogrebnyak
  • Loading branch information
shyamd committed Feb 21, 2022
1 parent 82e7e4b commit 3547099
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test_files/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,3 +223,7 @@ def test_on_page_markdown(plugin):
"[^1]: First Author and Second Author. Test title. *Testing Journal*, 2019."
in plugin.on_page_markdown(test_markdown, None, None, None)
)

test_markdown = "This is a citation. [@test] This is another citation [@test2]\n\n \\bibliography"
# ensure there are two items in bibliography
assert "[^2]:" in plugin.on_page_markdown(test_markdown, None, None, None)

0 comments on commit 3547099

Please sign in to comment.