## Embed and use Debian packaged MathJax

Debian has two packages of the MathJax library, libjs-mathjax and node-mathjax-full. The libjs one packages 2.7.9, the node one 3.2.2. There are some differences in the packaging, acquisition of source, etc. As mdBook upstream includes version 2.7.1, it seems better to use the libjs one.

Upstream included config=TeX-AMS-MML_HTMLorMML, corresponding to /usr/share/javascript/mathjax/config/TeX-MML-AM_HTMLorMML.js in the libjs package. It shows a list of "dependency" scripts that also need to be included.

The way to do it, currently in my mind, is to embed it, just like how the upstream embedded highlight.js, clipboard.js, FontAwesome and various other resources. But, since the MathJax thing is more than one file, they probably needed to be combined into one before embedding. This requires identifying the "dependencies" discussed above.

 -- Blair Noctis <ncts@debian.org>  Tue, 01 Apr 2025 07:13:12 +0000
