diff --git a/src/particle/particle/utilities.py b/src/particle/particle/utilities.py index 95bbc98a..a1daa8bd 100644 --- a/src/particle/particle/utilities.py +++ b/src/particle/particle/utilities.py @@ -164,6 +164,7 @@ def latex_to_html_name(name: str) -> str: """Conversion of particle names from LaTeX to HTML.""" name = re.sub(r"\^\{(.*?)\}", r"\1", name) name = re.sub(r"\_\{(.*?)\}", r"\1", name) + name = re.sub(r"\^\\prime(.*?)", r"", name) name = re.sub(r"\\prime(.*?)", r"′", name) name = re.sub(r"\\mathrm\{(.*?)\}", r"\1", name) name = re.sub(r"\\left\[(.*?)\\right\]", r"[\1] ", name)