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): # """