def replace_markdown(self, html): h2t = html2text.HTML2Text() h2t.body_width = 0 h2t.default_image_alt = "IMAGE" return h2t.handle(html)