summaryrefslogtreecommitdiffstats
path: root/tests/test_md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-04-01 06:39:37 +0000
committerrsiddharth <s@ricketyspace.net>2018-04-01 06:45:20 +0000
commitbb09de93520ec43b23b70c99c1f5439a16cb255e (patch)
treef522d89569feff0ee4b73ca7ad393e7c4a4c988b /tests/test_md_tw.py
parent472fbff768ad431f3ca030bf899180252394f18d (diff)
md_tw.py: Update TWMarkdown.output_block_quote.
Add subsequent indent text to all 'block' tokens inside block quote. * md_tw.py (TWMarkdown.output_block_quote): Update method. (TWRenderer.block_quote): Update method. * tests/data/renderer-block-quote-w.md: New file. * tests/data/renderer-block-quote.md: New file. * tests/data/renderer-fences-w.md: Update file. * tests/test_md_tw.py (test_render_block-_quote): New test.
Diffstat (limited to 'tests/test_md_tw.py')
-rw-r--r--tests/test_md_tw.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index 34fe766..64b59a9 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -797,6 +797,12 @@ class TestTWRenderer(object):
self._validate(txt, expected_txt)
+ def test_render_block_quote(self):
+ txt = self._md('renderer-block-quote.md')
+ expected_txt = self._get('renderer-block-quote-w.md')
+
+ self._validate(txt, expected_txt)
+
def test_render_block_html(self):
txt = self._md('renderer-block-html.md')
expected_txt = self._get('renderer-block-html-w.md')