diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-19 05:01:22 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-19 05:01:22 +0000 |
commit | 395706bc35d6ad62ae967ea04832170b79820f10 (patch) | |
tree | 709ab50eef8d1eb3b23fd9b69b0e488d3925fc5f /md_tw.py | |
parent | ee923e8d116bb61add5d204bace393af4db93d84 (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.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |