(text, snob=False)
return text
Escapes markdown-sensitive characters across whole document sections.
Escapes markdown-sensitive characters across whole document sections.
Escapes markdown - sensitive characters across whole document sections .
def escape_md_section(text, snob=False):
    """Escapes markdown-sensitive characters across whole document sections."""
    text = md_backslash_matcher.sub(r"\\\1", text)
    if snob:
        text = md_chars_matcher_all.sub(r"\\\1", text)
    text = md_dot_matcher.sub(r"\1\\\2", text)
    text = md_plus_matcher.sub(r"\1\\\2", text)
    text = md_dash_matcher.sub(r"\1\\\2", text)
    return text
def escape_md_section ( text , snob = False ) : text = md_backslash_matcher . sub ( r"\\\1" , text ) if snob : text = md_chars_matcher_all . sub ( r"\\\1" , text ) text = md_dot_matcher . sub ( r"\1\\\2" , text ) text = md_plus_matcher . sub ( r"\1\\\2" , text ) text = md_dash_matcher . sub ( r"\1\\\2" , text ) return text