ul and li conversion

This commit is contained in:
Matthew Tretter
2012-06-29 13:19:58 -04:00
parent a2788df401
commit e28b2fc7f6
2 changed files with 14 additions and 0 deletions

View File

@@ -35,5 +35,11 @@ class ConversionTests(unittest.TestCase):
def test_i(self):
self.assertEqual(md('<i>Hello</i>'), '*Hello*')
def test_ol(self):
self.assertEqual(md('<ol><li>a</li><li>b</li></ol>'), '1. a\n2. b\n')
def test_strong(self):
self.assertEqual(md('<strong>Hello</strong>'), '**Hello**')
def test_ul(self):
self.assertEqual(md('<ul><li>a</li><li>b</li></ul>'), '* a\n* b\n')