From ee923e8d116bb61add5d204bace393af4db93d84 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 19 Feb 2018 05:00:29 +0000 Subject: md_tw.py: Add TWRenderer.list_item. * md_tw.py (TWRenderer)[list_item]: New method. --- md_tw.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'md_tw.py') diff --git a/md_tw.py b/md_tw.py index 4e63973..354f7ba 100644 --- a/md_tw.py +++ b/md_tw.py @@ -284,6 +284,11 @@ class TWRenderer(mistune.Renderer): return out + def list_item(self, text): + out = '{}\n'.format(text) + return out + + class TWMarkdown(mistune.Markdown): """Text Wrap Markdown parser. """ -- cgit v1.2.3