Title support for a tags

This commit is contained in:
Matthew Tretter
2012-06-29 13:54:29 -04:00
parent 94cda0236e
commit 1fead8f9e7
2 changed files with 9 additions and 1 deletions

View File

@@ -25,6 +25,12 @@ class ConversionTests(unittest.TestCase):
'[Google](http://google.com)'
)
def test_a_with_title(self):
self.assertEqual(
md('<a href="http://google.com" title="The &quot;Goog&quot;">Google</a>'),
r'[Google](http://google.com "The \"Goog\"")'
)
def test_b(self):
self.assertEqual(md('<b>Hello</b>'), '**Hello**')