diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-19 05:00:29 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-19 05:00:29 +0000 |
commit | ee923e8d116bb61add5d204bace393af4db93d84 (patch) | |
tree | 6588bdac9bb81f2bff2e7231b059a2218b3b977d | |
parent | 0b51106b5915ff7b22ff71d339e640794f9a407c (diff) |
md_tw.py: Add TWRenderer.list_item.
* md_tw.py (TWRenderer)[list_item]: New method.
-rw-r--r-- | md_tw.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. """ |