diff options
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r-- | tests/test_apis.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py index c813e56..b5c7733 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -695,6 +695,18 @@ class testSerializers(unittest.TestCase): '<p>foo</p>' ) + def testXHTMLOutput(self): + self.assertEqual( + markdown.markdown('foo \nbar', output_format='xhtml'), + '<p>foo<br />\nbar</p>' + ) + + def testHTMLOutput(self): + self.assertEqual( + markdown.markdown('foo \nbar', output_format='html'), + '<p>foo<br>\nbar</p>' + ) + class testAtomicString(unittest.TestCase): """ Test that AtomicStrings are honored (not parsed). """ |