summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-18 20:41:15 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-18 20:41:15 +0000
commit606d8d17ba1537f42d5693d593af4b6bbd8ec355 (patch)
tree1fc39f696fe4ea7e43a4975cb22f076076f09dce
parent025be1b9277d3c814c318ffbecfb9e30f2265c34 (diff)
md_tw.py: Add TWMarkdown.output_block_html.
* md_tw.py (TWMarkdown)[output_block_html]: New method.
-rw-r--r--md_tw.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/md_tw.py b/md_tw.py
index 9bc0e2f..4e63973 100644
--- 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 [...]')