code: def _get_link_indices(self, current_modified_line):
          
          # List of (start_index, end_index) tuples for each link in the line
          links = []
          for m in self._link_regex.finditer(current_modified_line):
              links.append(m.span())
          return links
docs: Get a list of tuples containing start and end indices of inline
          anchor links
  
          :param current_modified_line: The line being examined for links
          :return: A list containing tuples of the form (start, end),
          the starting and ending indices of inline anchors links.