Skip to content

Commit

Permalink
v0.3.2, improved tests to handle both asterisks and underscores
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Sedov authored and Artem Sedov committed Jun 28, 2022
1 parent 8e0621b commit 5a3b19f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion tests/fixtures/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@

Our image:

*![our image caption](github-octocat.png)*
*![our image caption 1](github-octocat.png)*

_![our image caption 2](github-octocat.png)_
3 changes: 2 additions & 1 deletion tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,5 @@ def test_img2fig_output(tmp_path):
assert os.path.exists(index_file), "%s does not exist" % index_file

contents = pathlib.Path(index_file).read_text()
assert "<figcaption>our image caption</figcaption>" in contents
assert "<figcaption>our image caption 1</figcaption>" in contents
assert "<figcaption>our image caption 2</figcaption>" in contents

0 comments on commit 5a3b19f

Please sign in to comment.