aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2015-03-28 21:48:41 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2018-01-25 14:04:09 -0500
commit8c0698b013edeb82586290e637df7c30ede81b5a (patch)
treefa5350d22b627dea500cadd9744ab125d24b131e /tests
parentd18c3d0acab0e7469c3284c897afcb61f9dd1fea (diff)
downloadmarkdown-8c0698b013edeb82586290e637df7c30ede81b5a.tar.gz
markdown-8c0698b013edeb82586290e637df7c30ede81b5a.tar.bz2
markdown-8c0698b013edeb82586290e637df7c30ede81b5a.zip
Simplify output_formats to html and xhtml.
We started with the numbers before HTML5 was a thing and we thought there might be an XHTML2. Today, we know that all we have are HTML style tags and XHTML style tags. Nothing else really matters in the real world. Note that if '(x)html1' '(x)html4' or '(x)html5' are passed in, the number is stripped/ignored. Users shouldn't need to change their code for this.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_apis.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py
index 15ecc5b..251657b 100644
--- a/tests/test_apis.py
+++ b/tests/test_apis.py
@@ -596,7 +596,7 @@ class TestCliOptionParsing(unittest.TestCase):
'input': None,
'output': None,
'encoding': None,
- 'output_format': 'xhtml1',
+ 'output_format': 'xhtml',
'lazy_ol': True,
'extensions': [],
'extension_configs': {},
@@ -646,8 +646,8 @@ class TestCliOptionParsing(unittest.TestCase):
self.assertEqual(options, self.default_options)
def testOutputFormatOption(self):
- options, logging_level = parse_options(['-o', 'html5'])
- self.default_options['output_format'] = 'html5'
+ options, logging_level = parse_options(['-o', 'html'])
+ self.default_options['output_format'] = 'html'
self.assertEqual(options, self.default_options)
def testNoLazyOlOption(self):