markdown-textwrap

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

commit ee923e8d116bb61add5d204bace393af4db93d84
parent 0b51106b5915ff7b22ff71d339e640794f9a407c
Author: rsiddharth <s@ricketyspace.net>
Date:   Mon, 19 Feb 2018 05:00:29 +0000

md_tw.py: Add TWRenderer.list_item.

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

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

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