mirror of
https://github.com/mkdocs/mkdocs.git
synced 2026-03-27 18:08:31 +07:00
Add test for duplicated custom extension names
This commit is contained in:
@@ -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(), '<p>foo</p>')
|
||||
|
||||
# class IntegrationTests(unittest.TestCase):
|
||||
# def test_mkdocs_site(self):
|
||||
# """
|
||||
|
||||
Reference in New Issue
Block a user