summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-18 19:25:01 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-18 19:25:01 +0000
commit29c723f28ec273b797930009af28aeb5708b3370 (patch)
treeee2f9067eafae1afa3bc7eda74de80d47bec0cf6 /md_tw.py
parent887652565943937a92e9d658c390ac34d3d25637 (diff)
md_tw.py: Add TWRenderer.block_quote.
* md_tw.py (TWRenderer)[block_quote]: New method.
Diffstat (limited to 'md_tw.py')
-rw-r--r--md_tw.py4
1 files changed, 4 insertions, 0 deletions
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())