jgm / pandoc

Universal markup converter
https://pandoc.org
Other
33.14k stars 3.3k forks source link

Consider removing polyfill because MathJax should no longer need it #9918

Closed yutannihilation closed 4 days ago

yutannihilation commented 4 days ago

Explain the problem.

polyfill was introduced into Pandoc's template in https://github.com/jgm/pandoc/issues/8625 because MathJax's document indicated it needs polyfill at the moment. But, now the document doesn't refer to polyfill at all. So, I think Pandoc can just remove the link. As you know, polyfill is to support antique web browsers, so the vast majority users should not be affected.

https://www.mathjax.org/#gettingstarted

After investigating a bit, I found that the reason MathJax started to suggest polyfill was to support IE11, which is end of life on June 14, 2022. This is the original issue:

https://github.com/mathjax/MathJax-src/issues/62

I'm not sure what browser the reporter of https://github.com/jgm/pandoc/issues/8625 actually used, but, if it was IE11, I don't think it's a sane idea to keep supporting IE11 in 2023. Needless to say in 2024.

Pandoc version?

Pandoc 3.1.1 (bundled in RStudio IDE)

yutannihilation commented 4 days ago

Thanks for fixing!

jgm commented 4 days ago

Thanks for the suggestion. I'd actually forgotten that we even had this.