def summarize_markdown(md):
 (first_graf, sep, rest) = md.partition('\n\n')
 return first_graf[:500]

def summarize_markdown ( md ) : ( first_graf , sep , rest ) = md . partition ( '\n\n' ) return first_graf [ : 500 ]
get the first paragraph of some markdown text .