mirror of
https://github.com/vale981/recommonmark
synced 2025-03-05 10:01:39 -05:00
Add test cases for quotes in alt texts
This commit is contained in:
parent
059e95d6f3
commit
816fc608e6
3 changed files with 4 additions and 4 deletions
|
@ -23,7 +23,7 @@ Foo
|
|||
|
||||
Bar
|
||||
|
||||

|
||||

|
||||
|
||||
#!/bin/sh
|
||||
python
|
||||
|
|
|
@ -226,13 +226,13 @@ class TestParsing(unittest.TestCase):
|
|||
def test_image(self):
|
||||
self.assertParses(
|
||||
"""
|
||||

|
||||

|
||||
""",
|
||||
"""
|
||||
<?xml version="1.0" ?>
|
||||
<document source="<string>">
|
||||
<paragraph>
|
||||
<image alt="foo" uri="/url"></image>
|
||||
<image alt="foo "handle quotes"" uri="/url"></image>
|
||||
</paragraph>
|
||||
</document>
|
||||
"""
|
||||
|
|
|
@ -129,7 +129,7 @@ class GenericTests(SphinxIntegrationTests):
|
|||
def test_image(self):
|
||||
output = self.read_file('index.html')
|
||||
self.assertIn(
|
||||
'<p><img alt="foo" src="image.png" /></p>',
|
||||
'<p><img alt="foo "handle quotes"" src="image.png" /></p>',
|
||||
output
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue