[PATCH] gnu: Add js-mathjax-3.

  • Done
  • quality assurance status badge
Details
One participant
  • Lars-Dominik Braun
Owner
unassigned
Submitted by
Lars-Dominik Braun
Severity
normal
L
L
Lars-Dominik Braun wrote on 2 Dec 2021 11:44
(address . guix-patches@gnu.org)
Yaijlb2MlbDLnjT+@noor.fritz.box
Hi all,

attached is my stab at building MathJax@3 from source. The main problem
doing so is that we cannot build any of its build-time dependencies (TypeScript
compile, webpack, babel, …) and some of its runtime-dependencies
(speech-rule-engine) from source right now. Fortunately esbuild can
interpret TypeScript and transpile it to ES6-compatible JavaScript usable
by modern browsers, so we don’t need any of the build-time
dependencies. Removing speech-rule-engine disables all accessibility
features, but that’s a price we have to pay ?

Rendering standard formulas seems to work flawlessly in CHTML mode. But
module loading (for example for chemical formulas inside \ce{}) seems
to be broken. Although the modules are built and loaded by the browser
MathJax does not render the LaTeX environment correctly. I’m guessing
this affects all modules that are not built-in, so I suggest using *-full
builds for now, which have all modules built-in and consequently don’t
have this problem.

I hope the code has enough documentation for others to understand what
I’m doing and why.

Cheers,
Lars
L
L
Lars-Dominik Braun wrote on 16 Dec 2021 10:12
(address . 52241-done@debbugs.gnu.org)
YbsDFpbHju2S/02X@noor.fritz.box
Hi,

this was merged as 44e1300994b783a758de7b3cf84287811ece5e80.

Lars
Closed
?