def imtext():
 from .ansiext import AnsiExtension
 md = Markdown(output_format='imtext', extensions=[ExtraExtension(), AnsiExtension()])
 md.stripTopLevelTags = False
 return md

def imtext ( ) : from . ansiext import AnsiExtension md = Markdown ( output_format = 'imtext' , extensions = [ ExtraExtension ( ) , AnsiExtension ( ) ] ) md . stripTopLevelTags = False return md
this makes a converter from markdown to imtext format .