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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52241 in the body.
You can then email your comments to 52241 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#52241; Package guix-patches. (Thu, 02 Dec 2021 10:45:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars-Dominik Braun <lars <at> 6xq.net>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Thu, 02 Dec 2021 10:45:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

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 1 (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)]

Reply sent to Lars-Dominik Braun <lars <at> 6xq.net>:
You have taken responsibility. (Thu, 16 Dec 2021 09:14:02 GMT) Full text and rfc822 format available.

Notification sent to Lars-Dominik Braun <lars <at> 6xq.net>:
bug acknowledged by developer. (Thu, 16 Dec 2021 09:14:02 GMT) Full text and rfc822 format available.

Message #10 received at 52241-done <at> debbugs.gnu.org (full text, mbox):

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





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 13 Jan 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 104 days ago.

Previous Next


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