code: def convert_file(filename, renderer):
      
      try:
          with open(filename, 'r') as fin:
              rendered = mistletoe.markdown(fin, renderer)
              print(rendered, end='')
      except OSError:
          sys.exit('Cannot open file "{}".'.format(filename))
docs: Parse a Markdown file and dump the output to stdout.