summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-19 05:00:29 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-19 05:00:29 +0000
commitee923e8d116bb61add5d204bace393af4db93d84 (patch)
tree6588bdac9bb81f2bff2e7231b059a2218b3b977d
parent0b51106b5915ff7b22ff71d339e640794f9a407c (diff)
md_tw.py: Add TWRenderer.list_item.
* md_tw.py (TWRenderer)[list_item]: New method.
-rw-r--r--md_tw.py5
1 files changed, 5 insertions, 0 deletions
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.
"""