def parse_equation(match):
    eq = match.group(0)
    eq = eq.replace('{', '\\{')
    eq = eq.replace('}', '\\}')
    url = ('https://tex.s2cms.ru/svg/%s' % quote(eq))
    return ('![](%s)' % url)
def parse_equation(match):
    eq = match.group(0)
    eq = eq.replace('{', '\\{')
    eq = eq.replace('}', '\\}')
    url = ('https://tex.s2cms.ru/svg/%s' % quote(eq))
    return ('![](%s)' % url)