#NEWLINE# def is_text_markdown( self , value ) : #NEWLINE# #INDENT# 'Returns whether the text is in Markdown format.\n\n        This can be overridden if the field needs to check something else\n        to determine if the text is in Markdown format.\n        ' #NEWLINE# if ( self . field_id == 'text' ) : #NEWLINE# #INDENT# text_type_key = 'text_type' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# text_type_key = ( '%s_text_type' % value . field_id ) #NEWLINE# #UNINDENT# text_type = self . review_request_details . extra_data . get ( text_type_key , 'plain' ) #NEWLINE# return ( text_type == 'markdown' )