@brightspace-ui/core 2.185.0 → 2.186.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/helpers/mathjax.js +10 -1
- package/package.json +1 -1
- package/tools/mathjax-test-context.js +2 -1
package/helpers/mathjax.js
CHANGED
@@ -47,6 +47,7 @@ class HtmlBlockMathRenderer {
|
|
47
47
|
|
48
48
|
const mathJaxConfig = {
|
49
49
|
deferTypeset: true,
|
50
|
+
enableMML3Support: context.enableMML3Support,
|
50
51
|
renderLatex: context.renderLatex,
|
51
52
|
outputScale: context.outputScale || 1,
|
52
53
|
window: window
|
@@ -102,7 +103,15 @@ export function loadMathJax(mathJaxConfig) {
|
|
102
103
|
settings: { zoom: 'None' }
|
103
104
|
}
|
104
105
|
},
|
105
|
-
loader: {
|
106
|
+
loader: {
|
107
|
+
load: mathJaxConfig && mathJaxConfig.enableMML3Support
|
108
|
+
? [
|
109
|
+
'[mml]/mml3',
|
110
|
+
'ui/menu'
|
111
|
+
] : [
|
112
|
+
'ui/menu'
|
113
|
+
]
|
114
|
+
},
|
106
115
|
startup: {
|
107
116
|
ready: () => {
|
108
117
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@brightspace-ui/core",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.186.0",
|
4
4
|
"description": "A collection of accessible, free, open-source web components for building Brightspace applications",
|
5
5
|
"type": "module",
|
6
6
|
"repository": "https://github.com/BrightspaceUI/core.git",
|
@@ -2,5 +2,6 @@ console.warn('Using mathjax test context, this is intended for demo pages and te
|
|
2
2
|
|
3
3
|
document.getElementsByTagName('html')[0].dataset.mathjaxContext = JSON.stringify({
|
4
4
|
outputScale: 1.1,
|
5
|
-
renderLatex: !(window.location.search.indexOf('latex=false') !== -1)
|
5
|
+
renderLatex: !(window.location.search.indexOf('latex=false') !== -1),
|
6
|
+
enableMML3Support: true
|
6
7
|
});
|