def is_markdown_file(path):
 ext = os.path.splitext(path)[1].lower()
 return (ext in [u'.markdown', u'.mdown', u'.mkdn', u'.mkd', u'.md'])

def is_markdown_file ( path ) : ext = os . path . splitext ( path ) [ 1 ] . lower ( ) return ( ext in [ u'.markdown' , u'.mdown' , u'.mkdn' , u'.mkd' , u'.md' ] )
return true if the given file path is a markdown file .