diff options
author | rsiddharth <s@ricketyspace.net> | 2018-02-18 20:41:15 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2018-02-18 20:41:15 +0000 |
commit | 606d8d17ba1537f42d5693d593af4b6bbd8ec355 (patch) | |
tree | 1fc39f696fe4ea7e43a4975cb22f076076f09dce | |
parent | 025be1b9277d3c814c318ffbecfb9e30f2265c34 (diff) |
md_tw.py: Add TWMarkdown.output_block_html.
* md_tw.py (TWMarkdown)[output_block_html]: New method.
-rw-r--r-- | md_tw.py | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 [...]') |