def markmin_escape(text):
 return regex_markmin_escape.sub((lambda m: ('\\' + m.group(0).replace('\\', '\\\\'))), text)

def markmin_escape ( text ) : return regex_markmin_escape . sub ( ( lambda m : ( '\\' + m . group ( 0 ) . replace ( '\\' , '\\\\' ) ) ) , text )
insert before markmin control characters: :*~[]{}@$ .