summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrsiddharth <s@ricketyspace.net>2018-02-26 00:21:47 +0000
committerrsiddharth <s@ricketyspace.net>2018-02-26 00:21:47 +0000
commit184911c446aee4183b79fc5d7c47538b35cb89f5 (patch)
tree29999dac6f149f853bc6e4a1445d3ce4c7e9cfa3
parentfcb40a385d6063118e31fc2f53be1d022d2ce378 (diff)
md_tw.py: Ad TWRenderer.def_link.
* md_tw.py (TWRenderer)[def_link]: New method.
-rw-r--r--md_tw.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/md_tw.py b/md_tw.py
index be4f281..9a13ac4 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -282,12 +282,10 @@ class TWRenderer(mistune.Renderer):
def header(self, text, level, raw=None):
out = '{}'.format(text)
-
return out
def hrule(self, hr):
out = '{}'.format(hr)
-
return out
def paragraph(self, text):
@@ -295,7 +293,6 @@ class TWRenderer(mistune.Renderer):
out = '{}\n{}\n'.format(out, self.tw_get('initial_indent').strip())
return out
-
def list(self, body, ordered=True):
out = '{}\n\n\n'.format(body.rstrip())
return out
@@ -304,6 +301,10 @@ class TWRenderer(mistune.Renderer):
out = '{}\n'.format(text)
return out
+ def def_link(self, text):
+ out = '{}'.format(text)
+ return out
+
class TWMarkdown(mistune.Markdown):
"""Text Wrap Markdown parser.