1 # -*- coding: utf-8 -*-
3 # LLVM documentation anchor slug formatting
5 # Some of our markdown documentation numbers section titles
6 # This helpers is used by myst to remove that numbering from the anchor links.
8 from docutils
.nodes
import make_id
14 str = re
.sub(r
"^\s*(\w\.)+\w\s", "", str)
15 str = re
.sub(r
"^\s*\w\.\s", "", str)