| Lucas_Werkmeister_WMDE added a comment. |
The following patch is enough to support this in development mode:
diff --git a/embed.html b/embed.html index 8c16801..b36d8da 100644 --- a/embed.html +++ b/embed.html @@ -458,6 +458,14 @@ body { </div> <!-- JS files --> + <script type="text/x-mathjax-config"> + MathJax.Hub.Config( { + jax: [ "input/MathML", "output/CommonHTML" ], + extensions: [ "mml2jax.js","MathMenu.js","MathZoom.js", "AssistiveMML.js", "a11y/accessibility-menu.js" ], + messageStyle: "none" + } ); + </script> + <script src="" async></script> <!-- build:js js/embed.vendor.min.js --> <script src="" <script src="" diff --git a/index.html b/index.html index e74d5b5..c433a7a 100644 --- a/index.html +++ b/index.html @@ -430,6 +430,14 @@ </div> <!-- JS files --> + <script type="text/x-mathjax-config"> + MathJax.Hub.Config( { + jax: [ "input/MathML", "output/CommonHTML" ], + extensions: [ "mml2jax.js","MathMenu.js","MathZoom.js", "AssistiveMML.js", "a11y/accessibility-menu.js" ], + messageStyle: "none" + } ); + </script> + <script src="" async></script> <!-- build:js js/vendor.min.js --> <script src="" <script src="" diff --git a/wikibase/queryService/ui/ResultView.js b/wikibase/queryService/ui/ResultView.js index 1ff0bdd..3d6e3df 100644 --- a/wikibase/queryService/ui/ResultView.js +++ b/wikibase/queryService/ui/ResultView.js @@ -670,6 +670,7 @@ wikibase.queryService.ui.ResultView = ( function( $, download, window ) { try { $( '#query-result' ).show(); resultBrowser.draw( $( '#query-result' ) ); + MathJax.Hub.Queue( [ "Typeset", MathJax.Hub, 'query-result' ] ); self._actionBar.hide(); } catch ( e ) { self._drawErrorResult( resultBrowser );
Unfortunately, MathJax seems to insist on loading its own components dynamically, so I have no idea how we’re going to make this work with our build process. (The above patch loads MathJax from CDNJS, but I’m pretty sure that’s not acceptable in production.)
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: Physikerwelt, Aklapper, Lucas_Werkmeister_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Salgo60, _jensen, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Mbch331
Cc: Physikerwelt, Aklapper, Lucas_Werkmeister_WMDE, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, EBjune, merbst, LawExplorer, Salgo60, _jensen, Jonas, Xmlizer, jkroll, Smalyshev, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Lydia_Pintscher, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
