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;
