Bugfix : Added `mathjax_ignore` to HTMLFormatter._write_table and changed tests to assert `mathjax_ignore`
- [x] closes #59884 
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [x] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [x] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

Feedback would be appreciated.
/preview @datapythonista - the `/preview` feature seems broken, I get a 500 response from the server.

https://github.com/pandas-dev/pandas/actions/runs/11469095078/job/31915606006

Should I open an issue? This PR seems to have gone stale, can I take over this issue? Thanks

@rhshadrach @attack68  @KevsterAmp - sounds good. @rhshadrach - Do I commit on this branch or I re-open a new PR? Thanks Thanks for this PR, but the issue was closed by https://github.com/pandas-dev/pandas/pull/60311