From 29c723f28ec273b797930009af28aeb5708b3370 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 18 Feb 2018 19:25:01 +0000 Subject: md_tw.py: Add TWRenderer.block_quote. * md_tw.py (TWRenderer)[block_quote]: New method. --- md_tw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/md_tw.py b/md_tw.py index 150085f..ab20d7d 100644 --- a/md_tw.py +++ b/md_tw.py @@ -262,6 +262,10 @@ class TWRenderer(mistune.Renderer): lambda line: True) return out + def block_quote(self, text): + out = '{}'.format(text.rstrip('>\n')) + return out + def paragraph(self, text): out = self._tw_fill(text) out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').strip()) -- cgit v1.2.3