diff --git a/comictalker/talker_utils.py b/comictalker/talker_utils.py index 233d948..03a4c06 100644 --- a/comictalker/talker_utils.py +++ b/comictalker/talker_utils.py @@ -49,7 +49,7 @@ def cleanup_html(string: str | None, remove_html_tables: bool = False) -> str: 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"", lambda m: '#'*int(m.group(1))+' ', 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