from
# anchor_allowed_pos on.
curr_pos = start_idx + len(result_head)
@@ -1681,7 +1689,7 @@ def _add_footnotes(self, text):
# http://bumppo.net/projects/amputator/
_ampersand_re = re.compile(r'&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)')
_naked_lt_re = re.compile(r'<(?![a-z/?\$!])', re.I)
- _naked_gt_re = re.compile(r'''(?''', re.I)
+ _naked_gt_re = re.compile(r'''(?''', re.I)
def _encode_amps_and_angles(self, text):
# Smart processing for ampersands and angle brackets that need
diff --git a/test/tm-cases/smarty_pants_image_links.html b/test/tm-cases/smarty_pants_image_links.html
index 1b8bca67..d2bdd0f9 100644
--- a/test/tm-cases/smarty_pants_image_links.html
+++ b/test/tm-cases/smarty_pants_image_links.html
@@ -1 +1,7 @@
+
+How about in other paragraph content?
+
+How about sans alt text?
+
+How about a regular link here?
diff --git a/test/tm-cases/smarty_pants_image_links.text b/test/tm-cases/smarty_pants_image_links.text
index 8d86b645..04cb6c6f 100644
--- a/test/tm-cases/smarty_pants_image_links.text
+++ b/test/tm-cases/smarty_pants_image_links.text
@@ -1 +1,7 @@
![alt text](/path/to/image.jpg)
+
+How about ![alt text](/path/to/image.jpg) in other paragraph content?
+
+How about ![](/path/to/image.jpg) sans alt text?
+
+How about a [regular link](http://example.com "with a title") here?