From 5a3b19f8ee799f12cd5384569cb5f1e3890373f4 Mon Sep 17 00:00:00 2001 From: Artem Sedov Date: Tue, 28 Jun 2022 10:48:00 +0300 Subject: [PATCH] v0.3.2, improved tests to handle both asterisks and underscores --- tests/fixtures/docs/index.md | 4 +++- tests/test_plugin.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/fixtures/docs/index.md b/tests/fixtures/docs/index.md index e3c6ed3..16d31f0 100644 --- a/tests/fixtures/docs/index.md +++ b/tests/fixtures/docs/index.md @@ -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)_ diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 0f1d01d..3a8ccc6 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -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 "
our image caption
" in contents + assert "
our image caption 1
" in contents + assert "
our image caption 2
" in contents