#NEWLINE# def parse( text ) : #NEWLINE# #INDENT# md = Markdown ( extensions = [ 'codehilite' , 'tables' , 'smarty' , 'admonition' , 'toc' , 'fenced_code' ] ) #NEWLINE# md . inlinePatterns [ 'image_link' ] = ImageLookupImagePattern ( IMAGE_LINK_RE , md ) #NEWLINE# html = md . convert ( text ) #NEWLINE# return html