def markdownFromFile(*args, **kwargs):
 pos = [u'input', u'output', u'extensions', u'encoding']
 c = 0
 for arg in args:
  if (pos[c] not in kwargs):
   kwargs[pos[c]] = arg
  c += 1
  if (c == len(pos)):
   break
 md = Markdown(**kwargs)
 md.convertFile(kwargs.get(u'input', None), kwargs.get(u'output', None), kwargs.get(u'encoding', None))

def markdownFromFile ( * args , ** kwargs ) : pos = [ u'input' , u'output' , u'extensions' , u'encoding' ] c = 0 for arg in args : if ( pos [ c ] not in kwargs ) : kwargs [ pos [ c ] ] = arg c += 1 if ( c == len ( pos ) ) : break md = Markdown ( ** kwargs ) md . convertFile ( kwargs . get ( u'input' , None ) , kwargs . get ( u'output' , None ) , kwargs . get ( u'encoding' , None ) )
read markdown code from a file and write it to a file or a stream .