#NEWLINE# @ staticmethod #NEWLINE# def on_changed_body( target , value , oldvalue , initiator ) : #NEWLINE# #INDENT# allowed_tags = [ 'a' , 'abbr' , 'acronym' , 'b' , 'blockquote' , 'code' , 'em' , 'i' , 'li' , 'ol' , 'pre' , 'strong' , 'ul' , 'h1' , 'h2' , 'h3' , 'p' ] #NEWLINE# target . body_html = bleach . linkify ( bleach . clean ( markdown ( value , output_format = 'html' ) , tags = allowed_tags , strip = True ) )