summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-19 05:01:22 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-19 05:01:22 +0000
commit395706bc35d6ad62ae967ea04832170b79820f10 (patch)
tree709ab50eef8d1eb3b23fd9b69b0e488d3925fc5f /md_tw.py
parentee923e8d116bb61add5d204bace393af4db93d84 (diff)
md_tw.py: Add TWRenderer.list
* md_tw.py (TWRenderer)[list]: 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 354f7ba..21f6598 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -284,6 +284,10 @@ class TWRenderer(mistune.Renderer):
return out
+ def list(self, body, ordered=True):
+ out = '{}\n\n\n'.format(body.rstrip())
+ return out
+
def list_item(self, text):
out = '{}\n'.format(text)
return out