summaryrefslogtreecommitdiff
path: root/creole/tests/test_html2rest.py
diff options
context:
space:
mode:
Diffstat (limited to 'creole/tests/test_html2rest.py')
-rw-r--r--creole/tests/test_html2rest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/creole/tests/test_html2rest.py b/creole/tests/test_html2rest.py
index eb7de66..29d197a 100644
--- a/creole/tests/test_html2rest.py
+++ b/creole/tests/test_html2rest.py
@@ -71,6 +71,18 @@ class ReStTests(BaseCreoleTest):
"""
)
+ def test_substitution_image_without_p(self):
+ self.assert_html2rest(
+ rest_string="""
+ |image.png|
+
+ .. |image.png| image:: /url/to/image.png
+ """,
+ html_string="""
+ <img src="/url/to/image.png" />
+ """
+ )
+
def test_pre_code1(self):
self.assert_html2rest(
rest_string="""