From c82f55e6fbd0bfd970eaed5c5a5420eceaa95513 Mon Sep 17 00:00:00 2001 From: Adrian Sampson Date: Sat, 14 Jun 2014 15:12:26 +0100 Subject: [PATCH] Add test for duplicated custom extension names --- mkdocs/test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mkdocs/test.py b/mkdocs/test.py index d588c640..1e1fbb53 100755 --- a/mkdocs/test.py +++ b/mkdocs/test.py @@ -475,6 +475,14 @@ class BuildTests(unittest.TestCase): html_ext, _, _ = build.convert_markdown(md_input, ['smart_strong']) self.assertEqual(html_ext.strip(), expected_with_smartstrong) + def test_markdown_duplicate_custom_extension(self): + """ + Duplicated extension names should not cause problems. + """ + md_input = "foo" + html_ext, _, _ = build.convert_markdown(md_input, ['toc']) + self.assertEqual(html_ext.strip(), '

foo

') + # class IntegrationTests(unittest.TestCase): # def test_mkdocs_site(self): # """