def markmin_escape(text):
    return regex_markmin_escape.sub(
       lambda m: '\\'+m.group(0).replace('\\','\\\\'), text)
insert \ before markmin control characters: '`:*~[]{}@$
dataset/ETHPy150Open uwdata/termite-data-server/web2py/gluon/contrib/markmin/markmin2html.py/markmin_escape