summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-25 15:14:52 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-25 15:14:52 +0000
commitb31a83ea52148dfbdbe7b5a4b5b22b0049b1f49d (patch)
tree22ceb5621738e825c005da7c275dbd7e1313e56f
parente7a890fce73b9e0b286ef24a4b4bf063ed418209 (diff)
md_tw.py: TWRenderer.hrule.
* md_tw.py (TWRenderer)[hrule]: 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 41974c3..7630e81 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -285,6 +285,10 @@ class TWRenderer(mistune.Renderer):
return out
+ def hrule(self, hr):
+ out = '{}'.format(hr)
+
+ return out
def paragraph(self, text):
out = self.tw_fill(text)