docstr: Sanitize name as 'an XML Name, minus the ":"'.
  See https://www.w3.org/TR/REC-xml-names/#NT-NCName
docstr_tok: ["Sanitize","name","as","'an","XML","Name",",","minus","the","``",":","''","'",".","See","https",":","\/\/www.w3.org\/TR\/REC-xml-names\/","#","NT-NCName"]
code: def sanitize_name(self, name: str) -> str:
      """
      Sanitize name as 'an XML Name, minus the ":"'.
      See https://www.w3.org/TR/REC-xml-names/#NT-NCName
      """
      return self.NAME_RE.sub("_", name)
  
file_path: markdown/markdown/extensions/attr_list.py
imports: from __future__ import annotations
  from typing import TYPE_CHECKING
  from .None import Extension
  from ..treeprocessors import Treeprocessor
  import re
label_desc: Use image node_id 3 for calling the AttrListTreeprocessor obj's underlying member method code with example usage: obj.sanitize_name(name) and returns: self