From aa1e6b0f75b5425499764f79341440433b63827f Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 22 Jun 2016 06:28:51 -0700 Subject: [PATCH] Handle images in rst2md converter --- support/rst2md.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/support/rst2md.py b/support/rst2md.py index 6d1da6e0..00ee93d9 100644 --- a/support/rst2md.py +++ b/support/rst2md.py @@ -103,6 +103,12 @@ class Translator(nodes.NodeVisitor): def depart_inline(self, node): pass + def visit_image(self, node): + self.write('![](' + node['uri'] + ')') + + def depart_image(self, node): + pass + class MDWriter(writers.Writer): """GitHub-flavored markdown writer"""