summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-25 15:15:39 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-25 15:15:39 +0000
commit7824e8fbae1849f328af21b17ab107173495c9b4 (patch)
treef1d35d73b316b6dea3b26d121ffc182c02cb15f4
parentb31a83ea52148dfbdbe7b5a4b5b22b0049b1f49d (diff)
md_tw.py: Add TWMarkdown.output_hrule.
* md_tw.py (TWMarkdown)[output_hrule]: New method.
-rw-r--r--md_tw.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/md_tw.py b/md_tw.py
index 7630e81..2727a10 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -457,6 +457,9 @@ class TWMarkdown(mistune.Markdown):
return rendered_li
+ def output_hrule(self):
+ return self.renderer.hrule(self.token['text'])
+
def main():
print('USAGE: md_tw 72 file.md file2.md [...]')