From a4ceb0b2a5f2c2ae8aa3981182cf829fdd28e840 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Sun, 28 Jul 2013 15:09:25 -0400 Subject: HeaderID Ext now handles raw html in ids. Fixes #232 --- tests/test_extensions.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'tests') diff --git a/tests/test_extensions.py b/tests/test_extensions.py index 4eb600b..add759a 100644 --- a/tests/test_extensions.py +++ b/tests/test_extensions.py @@ -236,6 +236,18 @@ class TestHeaderId(unittest.TestCase): '

Some Header with ' 'markup.

') + def testHtmlEntities(self): + """ Test HeaderIDs with HTML Entities. """ + text = '# Foo & bar' + self.assertEqual(self.md.convert(text), + '

Foo & bar

') + + def testRawHtml(self): + """ Test HeaderIDs with raw HTML. """ + text = '# Foo Bar Baz.' + self.assertEqual(self.md.convert(text), + '

Foo Bar Baz.

') + def testNoAutoIds(self): """ Test HeaderIDs with no auto generated IDs. """ -- cgit v1.2.3