Skip to content

Commit 41521d4

Browse files
committed
updated style_render to include mathjax_ignore
1 parent c068e21 commit 41521d4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/io/formats/style_render.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,9 +366,11 @@ def _translate(
366366
if not get_option("styler.html.mathjax"):
367367
table_attr = table_attr or ""
368368
if 'class="' in table_attr:
369-
table_attr = table_attr.replace('class="', 'class="tex2jax_ignore ')
369+
table_attr = table_attr.replace(
370+
'class="', 'class="tex2jax_ignore mathjax_ignore"'
371+
)
370372
else:
371-
table_attr += ' class="tex2jax_ignore"'
373+
table_attr += ' class="tex2jax_ignore mathjax_ignore"'
372374
d.update({"table_attributes": table_attr})
373375

374376
if self.tooltips:

0 commit comments

Comments
 (0)