Debian Codegraph @

debian/patches/0004-Disable-MathJax.patch

raw symbols SCIP
1 Description: Disable MathJax support
2 MediaWiki does not distribute MathJax in a DFSG-compatible way.
3 Author: Taavi Väänänen <[email protected]>
4 Origin: vendor
5 Forwarded: not-needed
6 Last-Update: 2025-04-04
7 ---
8 This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
9 --- a/extensions/Math/extension.json
10 +++ b/extensions/Math/extension.json
11 @@ -165,8 +165,7 @@
12 "description": "To access this at run-time, use MathConfig::getValidRenderingModes(). Do not use the non-normalized configuration directly.",
13 "value": [
14 "source",
15 - "native",
16 - "mathjax"
17 + "native"
18 ]
19 },
20 "MathEnableWikibaseDataType": {
21 @@ -227,13 +226,6 @@
22 },
23 "ForeignResourcesDir": "modules",
24 "ResourceModules": {
25 - "ext.math.mathjax": {
26 - "group": "ext.math",
27 - "scripts": [
28 - "ext.math.mathjax.js",
29 - "mathjax/es5/tex-chtml.js"
30 - ]
31 - },
32 "ext.math.styles": {
33 "styles": "ext.math.css"
34 },
35 --- a/extensions/Math/src/MathConfig.php
36 +++ b/extensions/Math/src/MathConfig.php
37 @@ -45,7 +45,6 @@
38 self::MODE_LATEXML,
39 self::MODE_MATHML,
40 self::MODE_NATIVE_MML,
41 - self::MODE_NATIVE_JAX
42 ];
43
44 /**
45 @@ -56,7 +55,6 @@
46 self::MODE_MATHML => 5,
47 self::MODE_LATEXML => 7,
48 self::MODE_NATIVE_MML => 8,
49 - self::MODE_NATIVE_JAX => 9
50 ];
51
52 private ServiceOptions $options;