aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWaylan Limberg <waylan.limberg@icloud.com>2016-04-11 08:47:49 -0400
committerWaylan Limberg <waylan.limberg@icloud.com>2016-04-11 08:47:49 -0400
commit4d96f00fd3e4945b5c18d53ea81868bee5486c98 (patch)
tree8d1b77a2c565bc2eb9bdd863fed369fb24e5d2d0 /tests
parent882ce66dfde4c2bdd1df208f2368736301398b3c (diff)
parentdd669e3cb83960932e12b6942ed1f803f2b57586 (diff)
downloadmarkdown-4d96f00fd3e4945b5c18d53ea81868bee5486c98.tar.gz
markdown-4d96f00fd3e4945b5c18d53ea81868bee5486c98.tar.bz2
markdown-4d96f00fd3e4945b5c18d53ea81868bee5486c98.zip
Merge pull request #469 from martinmo/fenced-code-no-pygments
Support CodeHilite option use_pygments in fenced_code
Diffstat (limited to 'tests')
-rw-r--r--tests/test_extensions.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_extensions.py b/tests/test_extensions.py
index 19a1389..a43de79 100644
--- a/tests/test_extensions.py
+++ b/tests/test_extensions.py
@@ -375,6 +375,18 @@ line 3
'#line 3</code></pre>'
)
+ def testFencedLanguageAndPygmentsDisabled(self):
+ """ Test if fenced_code honors CodeHilite option use_pygments=False. """
+
+ text = '```python\nfrom __future__ import braces\n```'
+ md = markdown.Markdown(
+ extensions=[
+ markdown.extensions.codehilite.CodeHiliteExtension(use_pygments=False),
+ 'markdown.extensions.fenced_code'
+ ]
+ )
+ self.assertTrue('<code class="language-python">' in md.convert(text))
+
class TestHeaderId(unittest.TestCase):
""" Test HeaderId Extension. """