From 3822bf22e4028fa6410e51b0715e664927643563 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Mon, 5 Mar 2018 02:31:54 +0000 Subject: md_tw.py: Add TWRenderer.footnote_item. * md_tw.py (TWRenderer)[footnote_item]: New method. --- md_tw.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/md_tw.py b/md_tw.py index ca12027..ba85ea0 100644 --- a/md_tw.py +++ b/md_tw.py @@ -304,6 +304,10 @@ class TWRenderer(mistune.Renderer): out = '{}'.format(text) return out + def footnote_item(self, key, text): + out = '[^{}]: {}\n'.format(key, text) + return out + class TWMarkdown(mistune.Markdown): """Text Wrap Markdown parser. -- cgit v1.2.3