markdown-textwrap

text wrap markdown documents
git clone git://git.ricketyspace.net/markdown-textwrap.git
Log | Files | Refs

commit 395706bc35d6ad62ae967ea04832170b79820f10
parent ee923e8d116bb61add5d204bace393af4db93d84
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 19 Feb 2018 05:01:22 +0000

md_tw.py: Add TWRenderer.list

* md_tw.py (TWRenderer)[list]: New method.

Diffstat:
md_tw.py | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git 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