code: 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
docs: Escapes markdown-sensitive characters across whole document sections.