summaryrefslogtreecommitdiffstats
path: root/md_tw.py
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-26 00:22:41 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-26 00:22:41 +0000
commit34093b77787cffda9e84b16d133ee7fc5fcb777b (patch)
tree8d72213e26f0fa158acc628511302816765df36f /md_tw.py
parent184911c446aee4183b79fc5d7c47538b35cb89f5 (diff)
md_tw.py: Add TWMarkdown.output_def_link
* md_tw.py (TWMarkdown)[output_def_link]: New method.
Diffstat (limited to 'md_tw.py')
-rw-r--r--md_tw.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/md_tw.py b/md_tw.py
index 9a13ac4..cee1c0e 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -461,6 +461,9 @@ class TWMarkdown(mistune.Markdown):
def output_hrule(self):
return self.renderer.hrule(self.token['text'])
+ def output_def_link(self):
+ return self.renderer.def_link(self.token['text'])
+
def main():
print('USAGE: md_tw 72 file.md file2.md [...]')