code: def fix_href(soup, module: str):
      """
      Fix internal href to be compatible with docusaurus.
      """
  
      for a in soup.find_all(
          "a", {"class": "reference internal"}, href=True
      ):
          a["href"] = re.sub(
              "^texthero\.", f"/docs/{module}/", a["href"]
          )
          a["href"] = a["href"].lower()
      return soup
  
file_path: texthero/docs/to_docusaurus.py
imports: from bs4 import BeautifulSoup
  import glob
  from pathlib import Path
  from typing import List
  import re
  import json
label_desc: Use image node_id 3 for calling a global function with example usage: fix_href(soup, module) and returns: soup