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