GNU bug report logs - #52241
[PATCH] gnu: Add js-mathjax-3.

Previous Next

Package: guix-patches;

Reported by: Lars-Dominik Braun <lars <at> 6xq.net>

Date: Thu, 2 Dec 2021 10:45:02 UTC

Severity: normal

Tags: patch

Done: Lars-Dominik Braun <lars <at> 6xq.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Lars-Dominik Braun <lars <at> 6xq.net>
Subject: bug#52241: closed (Re: [PATCH] gnu: Add js-mathjax-3.)
Date: Thu, 16 Dec 2021 09:14:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

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

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 52241 <at> debbugs.gnu.org.

-- 
52241: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52241
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Lars-Dominik Braun <lars <at> 6xq.net>
To: 52241-done <at> debbugs.gnu.org
Subject: Re: [PATCH] gnu: Add js-mathjax-3.
Date: Thu, 16 Dec 2021 10:12:54 +0100
Hi,

this was merged as 44e1300994b783a758de7b3cf84287811ece5e80.

Lars


[Message part 3 (message/rfc822, inline)]
From: Lars-Dominik Braun <lars <at> 6xq.net>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add js-mathjax-3.
Date: Thu, 2 Dec 2021 11:44:37 +0100
[Message part 4 (text/plain, inline)]
Hi all,

attached is my stab at building MathJax <at> 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 (text/x-diff, attachment)]

This bug report was last modified 3 years and 157 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.