markdown-textwrap

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

commit 606d8d17ba1537f42d5693d593af4b6bbd8ec355
parent 025be1b9277d3c814c318ffbecfb9e30f2265c34
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 18 Feb 2018 20:41:15 +0000

md_tw.py: Add TWMarkdown.output_block_html.

* md_tw.py (TWMarkdown)[output_block_html]: New method.

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

diff --git a/md_tw.py b/md_tw.py @@ -331,6 +331,10 @@ class TWMarkdown(mistune.Markdown): return rendered_bq + def output_block_html(self): + text = self.token['text'] + return self.renderer.block_html(text) + def main(): print('USAGE: md_tw 72 file.md file2.md [...]')