From b6ae71a56c966c5236201ba50a52d768ee9fca73 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Sun, 25 Feb 2018 06:10:22 +0000 Subject: md_tw.py: Add TWRenderer.header. * md_tw.py (TWRenderer)[header]: New method. --- md_tw.py | 7 +++++++ 1 file changed, 7 insertions(+) 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()) -- cgit v1.2.3