summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-25 06:10:22 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-25 06:10:22 +0000
commitb6ae71a56c966c5236201ba50a52d768ee9fca73 (patch)
tree00cb99139cf58eede18e7103fb01c757bd0ae867 /md_tw.py
parent87936b0d2113ac0dbba604d7ac1625399c0051d8 (diff)
md_tw.py: Add TWRenderer.header.
* md_tw.py (TWRenderer)[header]: New method.
Diffstat (limited to 'md_tw.py')
-rw-r--r--md_tw.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/md_tw.py b/md_tw.py
index 3bad4ca..41974c3 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -279,6 +279,13 @@ class TWRenderer(mistune.Renderer):
lambda line: True)
return out
+
+ def header(self, text, level, raw=None):
+ out = '{}'.format(text)
+
+ return out
+
+
def paragraph(self, text):
out = self.tw_fill(text)
out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').strip())