Skip to content

Commit

Permalink
Merge pull request #5 from arterm-sedov/v0.3.0
Browse files Browse the repository at this point in the history
v0.3.2, improved tests to handle both asterisks and underscores
  • Loading branch information
arterm-sedov authored Jun 28, 2022
2 parents 4ac9bcc + 5a3b19f commit 38a7c41
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 38a7c41

Please sign in to comment.