docs: def id_from_text(text, add_hash=False):
      """
      Banana banana
      """
      id_ = text.strip().lower()
  
      # No unicode in urls
      id_ = id_.encode('ascii', errors='ignore').decode()
  
      id_ = re.sub(r"[^\w\s]", '', id_)
      id_ = re.sub(r"\s+", '-', id_)
      if add_hash:
          return '#%s' % id_
      return id_