[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52241] [PATCH] gnu: Add js-mathjax-3.
From: |
Lars-Dominik Braun |
Subject: |
[bug#52241] [PATCH] gnu: Add js-mathjax-3. |
Date: |
Thu, 2 Dec 2021 11:44:37 +0100 |
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
0001-gnu-Add-js-mathjax-3.patch
Description: Text Data
- [bug#52241] [PATCH] gnu: Add js-mathjax-3.,
Lars-Dominik Braun <=