mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
Handle images in rst2md converter
This commit is contained in:
parent
26819461bd
commit
aa1e6b0f75
@ -103,6 +103,12 @@ class Translator(nodes.NodeVisitor):
|
|||||||
def depart_inline(self, node):
|
def depart_inline(self, node):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def visit_image(self, node):
|
||||||
|
self.write('![](' + node['uri'] + ')')
|
||||||
|
|
||||||
|
def depart_image(self, node):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class MDWriter(writers.Writer):
|
class MDWriter(writers.Writer):
|
||||||
"""GitHub-flavored markdown writer"""
|
"""GitHub-flavored markdown writer"""
|
||||||
|
Loading…
Reference in New Issue
Block a user