#NEWLINE# def math_html( context , text ) : #NEWLINE# #INDENT# '\n    Filter html that contains math into HTML.\n\n    Separates the math parts from the HTML parts. Renders the math parts, and\n    then combines everything.\n    ' #NEWLINE# res_lst = [ ] #NEWLINE# chunks = math_raw_lst ( context ) #NEWLINE# for c in chunks : #NEWLINE# #INDENT# res_lst . append ( c [ 'content' ] ) #NEWLINE# #UNINDENT# return '' . join ( res_lst )