From 70bf915b7ceda6387a91eb813612af1d15f8d25f Mon Sep 17 00:00:00 2001 From: JustinCapili <107870885+JustinCapili@users.noreply.github.com> Date: Wed, 2 Oct 2024 23:59:11 -0400 Subject: [PATCH 1/2] Update html.py Adding a mathjax_ignore as a bug fix to ensure that proper formatting is performed --- pandas/io/formats/html.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pandas/io/formats/html.py b/pandas/io/formats/html.py index adaeed017d7bf..905a91093133a 100644 --- a/pandas/io/formats/html.py +++ b/pandas/io/formats/html.py @@ -239,6 +239,7 @@ def _write_table(self, indent: int = 0) -> None: use_mathjax = get_option("display.html.use_mathjax") if not use_mathjax: _classes.append("tex2jax_ignore") + _classes.append("mathjax_ignore" if self.classes is not None: if isinstance(self.classes, str): self.classes = self.classes.split() From 62a7cbb14cfabd805b66b775c00a0a5fc234c0f1 Mon Sep 17 00:00:00 2001 From: JustinCapili <107870885+JustinCapili@users.noreply.github.com> Date: Thu, 3 Oct 2024 15:48:16 -0400 Subject: [PATCH 2/2] Update html.py --- pandas/io/formats/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/io/formats/html.py b/pandas/io/formats/html.py index 905a91093133a..919e355120708 100644 --- a/pandas/io/formats/html.py +++ b/pandas/io/formats/html.py @@ -239,7 +239,7 @@ def _write_table(self, indent: int = 0) -> None: use_mathjax = get_option("display.html.use_mathjax") if not use_mathjax: _classes.append("tex2jax_ignore") - _classes.append("mathjax_ignore" + _classes.append("mathjax_ignore") if self.classes is not None: if isinstance(self.classes, str): self.classes = self.classes.split()