summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--md_tw.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/md_tw.py b/md_tw.py
index 4b833ba..dbd3a44 100644
--- a/md_tw.py
+++ b/md_tw.py
@@ -224,6 +224,11 @@ class TWRenderer(mistune.Renderer):
width=kwargs.get('tw_width', 72)
)
+ def tw_get(self, attr):
+ """Get attribute from the local textwrap.TextWrapper instance.
+ """
+ return getattr(self.tw, attr, None)
+
def tw_set(self, **kwargs):
"""