From 180eabfd30d80cd8b9d580f5a212044ba00c1348 Mon Sep 17 00:00:00 2001 From: jmnote Date: Fri, 9 Oct 2026 01:58:08 +0900 Subject: [PATCH] Apply $wgSmjEnableMenu to MathJax.options.enableMenu The setting was exported to the page but never read by the client, so $wgSmjEnableMenu = false had no effect. --- resources/ext.SimpleMathJax.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/resources/ext.SimpleMathJax.js b/resources/ext.SimpleMathJax.js index 27e76e52..af1d6052 100644 --- a/resources/ext.SimpleMathJax.js +++ b/resources/ext.SimpleMathJax.js @@ -15,6 +15,7 @@ var defaults = { wgSmjDelimitersDisplayMath: [], wgSmjIgnoreHtmlClass: 'mathjax_ignore|comment|diff-(context|addedline|deletedline)', wgSmjScale: 1, + wgSmjEnableMenu: true, wgSmjExplorerEnabled: false }; @@ -146,6 +147,7 @@ function ensureLoaded() { options: { ignoreHtmlClass: config('wgSmjIgnoreHtmlClass'), processHtmlClass: "mathjax_process|smj-container", + enableMenu: config('wgSmjEnableMenu'), // Semantic enrichment drives MathJax 4's explorer: a click selects and // highlights a symbol. Readers can still turn it on from the menu. menuOptions: {