diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-18 19:25:01 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-18 19:25:01 +0000 |
commit | 29c723f28ec273b797930009af28aeb5708b3370 (patch) | |
tree | ee2f9067eafae1afa3bc7eda74de80d47bec0cf6 | |
parent | 887652565943937a92e9d658c390ac34d3d25637 (diff) |
md_tw.py: Add TWRenderer.block_quote.
* md_tw.py (TWRenderer)[block_quote]: New method.
-rw-r--r-- | md_tw.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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()) |