summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/data/renderer-fences-w.md12
-rw-r--r--tests/data/renderer-fences.md12
-rw-r--r--tests/test_md_tw.py7
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/data/renderer-fences-w.md b/tests/data/renderer-fences-w.md
new file mode 100644
index 0000000..5cbb95c
--- /dev/null
+++ b/tests/data/renderer-fences-w.md
@@ -0,0 +1,12 @@
+Let's have some chaos:
+
+```bash
+$ echo 'Zap!'
+$ rm -rf /
+```
+> Some Jaromil art inside a block quote
+>
+> ```bash
+> $ :(){:|:&};:
+> ```
+> For more look at jaramil.dyne.org. He's awesome.
diff --git a/tests/data/renderer-fences.md b/tests/data/renderer-fences.md
new file mode 100644
index 0000000..5cbb95c
--- /dev/null
+++ b/tests/data/renderer-fences.md
@@ -0,0 +1,12 @@
+Let's have some chaos:
+
+```bash
+$ echo 'Zap!'
+$ rm -rf /
+```
+> Some Jaromil art inside a block quote
+>
+> ```bash
+> $ :(){:|:&};:
+> ```
+> For more look at jaramil.dyne.org. He's awesome.
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index 2c300c5..47f354c 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -799,11 +799,18 @@ class TestTWRenderer(object):
self._validate(txt, expected_txt)
def test_render_block_code(self):
+ # Test block code (spaces)
txt = self._md('renderer-block-code.md')
expected_txt = self._get('renderer-block-code-w.md')
self._validate(txt, expected_txt)
+ # Test block code (fences)
+ txt = self._md('renderer-fences.md')
+ expected_txt = self._get('renderer-fences-w.md')
+
+ self._validate(txt, expected_txt)
+
def teardown(self):
if self.del_tmp_dir:
shutil.rmtree(self.tmp_dir)