@brightspace-ui/core 1.208.1 → 1.208.2

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.
@@ -42,7 +42,7 @@
42
42
 
43
43
  </script>
44
44
  <script>
45
- document.getElementsByTagName('html')[0].dataset.mathjaxContext = JSON.stringify({ renderLatex: window.location.search.indexOf('latex=true') !== -1 });
45
+ document.getElementsByTagName('html')[0].dataset.mathjaxContext = JSON.stringify({ outputScale: 1.1, renderLatex: window.location.search.indexOf('latex=true') !== -1 });
46
46
  </script>
47
47
  </head>
48
48
  <body unresolved>
@@ -245,8 +245,10 @@ class HtmlBlock extends LitElement {
245
245
  if (fragment) {
246
246
 
247
247
  let temp = document.createElement('div');
248
+ temp.style.display = 'none';
248
249
  temp.appendChild(fragment);
249
250
 
251
+ this._renderContainer.appendChild(temp);
250
252
  temp = await this._processRenderers(temp);
251
253
  this._renderContainer.innerHTML = temp.innerHTML;
252
254
 
@@ -32,9 +32,11 @@ export class HtmlBlockMathRenderer {
32
32
  await loadMathJax(mathJaxConfig);
33
33
 
34
34
  const temp = document.createElement('div');
35
+ temp.style.display = 'none';
35
36
  temp.attachShadow({ mode: 'open' });
36
37
  temp.shadowRoot.innerHTML = `<div><mjx-doc><mjx-head></mjx-head><mjx-body>${elem.innerHTML}</mjx-body></mjx-doc></div>`;
37
38
 
39
+ elem.appendChild(temp);
38
40
  window.MathJax.typesetShadow(temp.shadowRoot);
39
41
  return temp.shadowRoot.firstChild;
40
42
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brightspace-ui/core",
3
- "version": "1.208.1",
3
+ "version": "1.208.2",
4
4
  "description": "A collection of accessible, free, open-source web components for building Brightspace applications",
5
5
  "repository": "https://github.com/BrightspaceUI/core.git",
6
6
  "publishConfig": {