diff --git a/manimlib/mobject/svg/mtex_mobject.py b/manimlib/mobject/svg/mtex_mobject.py index 1f808dad..308f8629 100644 --- a/manimlib/mobject/svg/mtex_mobject.py +++ b/manimlib/mobject/svg/mtex_mobject.py @@ -79,10 +79,9 @@ class MTex(StringMobject): @staticmethod def get_command_matches(string: str) -> list[re.Match]: - # Group together adjacent braces + # Lump together adjacent brace pairs pattern = re.compile(r""" (?P\\(?:[a-zA-Z]+|.)) - |(?P