diff --git a/comictalker/talker_utils.py b/comictalker/talker_utils.py index 8453f97..233d948 100644 --- a/comictalker/talker_utils.py +++ b/comictalker/talker_utils.py @@ -47,9 +47,10 @@ def cleanup_html(string: str | None, remove_html_tables: bool = False) -> str: # put in our own string = re.sub(r"
|", "\n", string, flags=re.IGNORECASE) + string = re.sub(r"
  • ", "* ", string, flags=re.IGNORECASE) string = re.sub(r"

    ", "\n\n", string, flags=re.IGNORECASE) - string = re.sub(r"", "*", string, flags=re.IGNORECASE) - string = re.sub(r"", "*\n", string, flags=re.IGNORECASE) + string = re.sub(r"", lambda m: '#'*int(m.group(1))+' ', string, flags=re.IGNORECASE) + string = re.sub(r"", "\n", string, flags=re.IGNORECASE) # remove the tables p = re.compile(r".*?")