From 395706bc35d6ad62ae967ea04832170b79820f10 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 19 Feb 2018 05:01:22 +0000 Subject: md_tw.py: Add TWRenderer.list * md_tw.py (TWRenderer)[list]: New method. --- md_tw.py | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3