aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_syntax/inline
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_syntax/inline')
-rw-r--r--tests/test_syntax/inline/test_images.py (renamed from tests/test_syntax/inline/images.py)0
-rw-r--r--tests/test_syntax/inline/test_links.py (renamed from tests/test_syntax/inline/links.py)12
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_syntax/inline/images.py b/tests/test_syntax/inline/test_images.py
index 52ce330..52ce330 100644
--- a/tests/test_syntax/inline/images.py
+++ b/tests/test_syntax/inline/test_images.py
diff --git a/tests/test_syntax/inline/links.py b/tests/test_syntax/inline/test_links.py
index d74bb75..3e8593f 100644
--- a/tests/test_syntax/inline/links.py
+++ b/tests/test_syntax/inline/test_links.py
@@ -118,3 +118,15 @@ class TestAdvancedLinks(TestCase):
"""<p><a href="http://link.com/with spaces '&quot;and quotes&quot;" title="and title">"""
"""Text</a> more text</p>"""
)
+
+ def test_amp_in_url(self):
+ """Test amp in URLs."""
+
+ self.assertMarkdownRenders(
+ '[link](http://www.freewisdom.org/this&that)',
+ '<p><a href="http://www.freewisdom.org/this&amp;that">link</a></p>'
+ )
+ self.assertMarkdownRenders(
+ '[title](http://example.com/?a=1&amp;b=2)',
+ '<p><a href="http://example.com/?a=1&amp;b=2">title</a></p>'
+ )