summaryrefslogtreecommitdiffstats
path: root/mdl_style.py
diff options
context:
space:
mode:
Diffstat (limited to 'mdl_style.py')
-rw-r--r--mdl_style.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/mdl_style.py b/mdl_style.py
index 3f9d716..8ed6e92 100644
--- a/mdl_style.py
+++ b/mdl_style.py
@@ -129,6 +129,11 @@ class LSRenderer(Renderer):
link_text = self._stylize_link(link, title, text)
return link_text
+ def image(self, src, title, text):
+ # Markup for images are same as links, except it is prefixed
+ # with a bang (!).
+ return '{}{}'.format('!', self.link(src, title, text))
+
def _stylize_link(self, link, title, text):
if self.link_style == 'inline':
return self._gen_inline_link(link, title, text)