@pie-element/math-templated 2.22.3-next.8 → 2.22.3

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.
@@ -268,6 +268,110 @@ Properties of the `h3` object:
268
268
 
269
269
  Indicates if the plugin is disabled or not
270
270
 
271
+ ### `languageCharacters` (object)
272
+
273
+ Properties of the `languageCharacters` object:
274
+
275
+ #### `disabled` (boolean)
276
+
277
+ Indicates if the plugin is disabled or not
278
+
279
+ ### `bold` (object)
280
+
281
+ Properties of the `bold` object:
282
+
283
+ #### `disabled` (boolean)
284
+
285
+ Indicates if the plugin is disabled or not
286
+
287
+ ### `html` (object)
288
+
289
+ Properties of the `html` object:
290
+
291
+ #### `disabled` (boolean)
292
+
293
+ Indicates if the plugin is disabled or not
294
+
295
+ ### `italic` (object)
296
+
297
+ Properties of the `italic` object:
298
+
299
+ #### `disabled` (boolean)
300
+
301
+ Indicates if the plugin is disabled or not
302
+
303
+ ### `ol_list` (object)
304
+
305
+ Properties of the `ol_list` object:
306
+
307
+ #### `disabled` (boolean)
308
+
309
+ Indicates if the plugin is disabled or not
310
+
311
+ ### `redo` (object)
312
+
313
+ Properties of the `redo` object:
314
+
315
+ #### `disabled` (boolean)
316
+
317
+ Indicates if the plugin is disabled or not
318
+
319
+ ### `strikethrough` (object)
320
+
321
+ Properties of the `strikethrough` object:
322
+
323
+ #### `disabled` (boolean)
324
+
325
+ Indicates if the plugin is disabled or not
326
+
327
+ ### `sub` (object)
328
+
329
+ Properties of the `sub` object:
330
+
331
+ #### `disabled` (boolean)
332
+
333
+ Indicates if the plugin is disabled or not
334
+
335
+ ### `sup` (object)
336
+
337
+ Properties of the `sup` object:
338
+
339
+ #### `disabled` (boolean)
340
+
341
+ Indicates if the plugin is disabled or not
342
+
343
+ ### `table` (object)
344
+
345
+ Properties of the `table` object:
346
+
347
+ #### `disabled` (boolean)
348
+
349
+ Indicates if the plugin is disabled or not
350
+
351
+ ### `ul_list` (object)
352
+
353
+ Properties of the `ul_list` object:
354
+
355
+ #### `disabled` (boolean)
356
+
357
+ Indicates if the plugin is disabled or not
358
+
359
+ ### `underline` (object)
360
+
361
+ Properties of the `underline` object:
362
+
363
+ #### `disabled` (boolean)
364
+
365
+ Indicates if the plugin is disabled or not
366
+
367
+ ### `undo` (object)
368
+
369
+ Properties of the `undo` object:
370
+
371
+ #### `disabled` (boolean)
372
+
373
+ Indicates if the plugin is disabled or not
374
+
271
375
  ## `EditableHtmlButtonConfigure` (object)
272
376
 
273
377
  Properties of the `EditableHtmlButtonConfigure` object:
@@ -384,6 +488,110 @@ Properties of the `h3` object:
384
488
 
385
489
  Indicates if the plugin is disabled or not
386
490
 
491
+ #### `languageCharacters` (object)
492
+
493
+ Properties of the `languageCharacters` object:
494
+
495
+ ##### `disabled` (boolean)
496
+
497
+ Indicates if the plugin is disabled or not
498
+
499
+ #### `bold` (object)
500
+
501
+ Properties of the `bold` object:
502
+
503
+ ##### `disabled` (boolean)
504
+
505
+ Indicates if the plugin is disabled or not
506
+
507
+ #### `html` (object)
508
+
509
+ Properties of the `html` object:
510
+
511
+ ##### `disabled` (boolean)
512
+
513
+ Indicates if the plugin is disabled or not
514
+
515
+ #### `italic` (object)
516
+
517
+ Properties of the `italic` object:
518
+
519
+ ##### `disabled` (boolean)
520
+
521
+ Indicates if the plugin is disabled or not
522
+
523
+ #### `ol_list` (object)
524
+
525
+ Properties of the `ol_list` object:
526
+
527
+ ##### `disabled` (boolean)
528
+
529
+ Indicates if the plugin is disabled or not
530
+
531
+ #### `redo` (object)
532
+
533
+ Properties of the `redo` object:
534
+
535
+ ##### `disabled` (boolean)
536
+
537
+ Indicates if the plugin is disabled or not
538
+
539
+ #### `strikethrough` (object)
540
+
541
+ Properties of the `strikethrough` object:
542
+
543
+ ##### `disabled` (boolean)
544
+
545
+ Indicates if the plugin is disabled or not
546
+
547
+ #### `sub` (object)
548
+
549
+ Properties of the `sub` object:
550
+
551
+ ##### `disabled` (boolean)
552
+
553
+ Indicates if the plugin is disabled or not
554
+
555
+ #### `sup` (object)
556
+
557
+ Properties of the `sup` object:
558
+
559
+ ##### `disabled` (boolean)
560
+
561
+ Indicates if the plugin is disabled or not
562
+
563
+ #### `table` (object)
564
+
565
+ Properties of the `table` object:
566
+
567
+ ##### `disabled` (boolean)
568
+
569
+ Indicates if the plugin is disabled or not
570
+
571
+ #### `ul_list` (object)
572
+
573
+ Properties of the `ul_list` object:
574
+
575
+ ##### `disabled` (boolean)
576
+
577
+ Indicates if the plugin is disabled or not
578
+
579
+ #### `underline` (object)
580
+
581
+ Properties of the `underline` object:
582
+
583
+ ##### `disabled` (boolean)
584
+
585
+ Indicates if the plugin is disabled or not
586
+
587
+ #### `undo` (object)
588
+
589
+ Properties of the `undo` object:
590
+
591
+ ##### `disabled` (boolean)
592
+
593
+ Indicates if the plugin is disabled or not
594
+
387
595
  ### `required` (boolean)
388
596
 
389
597
  Indicates if the item is required and the value cannot be empty
@@ -481,6 +689,110 @@ Properties of the `h3` object:
481
689
 
482
690
  Indicates if the plugin is disabled or not
483
691
 
692
+ #### `languageCharacters` (object)
693
+
694
+ Properties of the `languageCharacters` object:
695
+
696
+ ##### `disabled` (boolean)
697
+
698
+ Indicates if the plugin is disabled or not
699
+
700
+ #### `bold` (object)
701
+
702
+ Properties of the `bold` object:
703
+
704
+ ##### `disabled` (boolean)
705
+
706
+ Indicates if the plugin is disabled or not
707
+
708
+ #### `html` (object)
709
+
710
+ Properties of the `html` object:
711
+
712
+ ##### `disabled` (boolean)
713
+
714
+ Indicates if the plugin is disabled or not
715
+
716
+ #### `italic` (object)
717
+
718
+ Properties of the `italic` object:
719
+
720
+ ##### `disabled` (boolean)
721
+
722
+ Indicates if the plugin is disabled or not
723
+
724
+ #### `ol_list` (object)
725
+
726
+ Properties of the `ol_list` object:
727
+
728
+ ##### `disabled` (boolean)
729
+
730
+ Indicates if the plugin is disabled or not
731
+
732
+ #### `redo` (object)
733
+
734
+ Properties of the `redo` object:
735
+
736
+ ##### `disabled` (boolean)
737
+
738
+ Indicates if the plugin is disabled or not
739
+
740
+ #### `strikethrough` (object)
741
+
742
+ Properties of the `strikethrough` object:
743
+
744
+ ##### `disabled` (boolean)
745
+
746
+ Indicates if the plugin is disabled or not
747
+
748
+ #### `sub` (object)
749
+
750
+ Properties of the `sub` object:
751
+
752
+ ##### `disabled` (boolean)
753
+
754
+ Indicates if the plugin is disabled or not
755
+
756
+ #### `sup` (object)
757
+
758
+ Properties of the `sup` object:
759
+
760
+ ##### `disabled` (boolean)
761
+
762
+ Indicates if the plugin is disabled or not
763
+
764
+ #### `table` (object)
765
+
766
+ Properties of the `table` object:
767
+
768
+ ##### `disabled` (boolean)
769
+
770
+ Indicates if the plugin is disabled or not
771
+
772
+ #### `ul_list` (object)
773
+
774
+ Properties of the `ul_list` object:
775
+
776
+ ##### `disabled` (boolean)
777
+
778
+ Indicates if the plugin is disabled or not
779
+
780
+ #### `underline` (object)
781
+
782
+ Properties of the `underline` object:
783
+
784
+ ##### `disabled` (boolean)
785
+
786
+ Indicates if the plugin is disabled or not
787
+
788
+ #### `undo` (object)
789
+
790
+ Properties of the `undo` object:
791
+
792
+ ##### `disabled` (boolean)
793
+
794
+ Indicates if the plugin is disabled or not
795
+
484
796
  ### `settings` (boolean)
485
797
 
486
798
  Indicates if the item has to be displayed in the Settings Panel
@@ -1,4 +1,4 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.23.2/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@1.24.2/module/index.js";
2
2
  import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@4.24.3/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
@@ -43053,49 +43053,34 @@ var mathjaxScript = {};
43053
43053
  Object.defineProperty(mathjaxScript, "__esModule", {
43054
43054
  value: true
43055
43055
  });
43056
- mathjaxScript.mathRenderingKEY = mathjaxScript.mathRenderingAccessibleKEY = mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
43056
+ mathjaxScript.initializeMathJax = mathjaxScript.MathJaxVersion = void 0;
43057
43057
  var _renderMath = renderMath$1;
43058
43058
  var MathJaxVersion = '3.2.2';
43059
43059
  mathjaxScript.MathJaxVersion = MathJaxVersion;
43060
- var mathRenderingKEY = '@pie-lib/math-rendering@2';
43061
- mathjaxScript.mathRenderingKEY = mathRenderingKEY;
43062
- var mathRenderingAccessibleKEY = '@pie-lib/math-rendering-accessible@1';
43063
- mathjaxScript.mathRenderingAccessibleKEY = mathRenderingAccessibleKEY;
43064
- var getMathJaxCustomKey = function getMathJaxCustomKey() {
43065
- var _window, _window$MathJax, _window2, _window2$MathJax, _window2$MathJax$conf;
43066
- return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
43067
- };
43068
- var mathJaxCustomKey = getMathJaxCustomKey();
43069
- var defaultOpts = function defaultOpts() {
43070
- return (0, _renderMath.getGlobal)().opts || ({});
43071
- };
43072
- var initializeMathJax = function initializeMathJax(renderOpts, processMathJaxFullPage) {
43073
- window.MathJaxInitialised = true;
43074
- renderOpts = renderOpts || defaultOpts();
43075
- if ((!window.MathJax || window.MathJax.version !== MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
43076
- var _renderOpts, _renderOpts2;
43077
- if ((_renderOpts = renderOpts) !== null && _renderOpts !== void 0 && _renderOpts.useSingleDollar) {
43078
- console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
43079
- }
43080
- var texConfig = (_renderOpts2 = renderOpts) !== null && _renderOpts2 !== void 0 && _renderOpts2.useSingleDollar ? {
43081
- macros: {
43082
- parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
43083
- overarc: '\\overparen',
43084
- napprox: '\\not\\approx',
43085
- longdiv: '\\enclose{longdiv}'
43086
- },
43087
- inlineMath: [['$', '$'], ['\\(', '\\)']],
43088
- processEscapes: true,
43089
- displayMath: [['$$', '$$'], ['\\[', '\\]']]
43090
- } : {
43091
- macros: {
43092
- parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
43093
- overarc: '\\overparen',
43094
- napprox: '\\not\\approx',
43095
- longdiv: '\\enclose{longdiv}'
43096
- },
43097
- displayMath: [['$$', '$$'], ['\\[', '\\]']]
43098
- };
43060
+ var initializeMathJax = function initializeMathJax(renderOpts) {
43061
+ if (renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar) {
43062
+ console.warn('[math-rendering] using $ is not advisable, please use $$..$$ or \\(...\\)');
43063
+ }
43064
+ var texConfig = renderOpts !== null && renderOpts !== void 0 && renderOpts.useSingleDollar ? {
43065
+ macros: {
43066
+ parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
43067
+ overarc: '\\overparen',
43068
+ napprox: '\\not\\approx',
43069
+ longdiv: '\\enclose{longdiv}'
43070
+ },
43071
+ inlineMath: [['$', '$'], ['\\(', '\\)']],
43072
+ processEscapes: true,
43073
+ displayMath: [['$$', '$$'], ['\\[', '\\]']]
43074
+ } : {
43075
+ macros: {
43076
+ parallelogram: "\\lower.2em{\\Huge\\unicode{x25B1}}",
43077
+ overarc: '\\overparen',
43078
+ napprox: '\\not\\approx',
43079
+ longdiv: '\\enclose{longdiv}'
43080
+ },
43081
+ displayMath: [['$$', '$$'], ['\\[', '\\]']]
43082
+ };
43083
+ window.mathjaxLoadedP = new Promise(function (resolve) {
43099
43084
  window.MathJax = {
43100
43085
  startup: {
43101
43086
  typeset: false,
@@ -43114,10 +43099,7 @@ var initializeMathJax = function initializeMathJax(renderOpts, processMathJaxFul
43114
43099
  MathJax.startup.defaultReady();
43115
43100
  var globalObj = (0, _renderMath.getGlobal)();
43116
43101
  globalObj.instance = MathJax;
43117
- if (processMathJaxFullPage) {
43118
- processMathJaxFullPage();
43119
- }
43120
- window.MathJaxLoaded = true;
43102
+ resolve();
43121
43103
  }
43122
43104
  },
43123
43105
  loader: {
@@ -43148,7 +43130,7 @@ var initializeMathJax = function initializeMathJax(renderOpts, processMathJaxFul
43148
43130
  script.src = ("https://cdn.jsdelivr.net/npm/mathjax@").concat(MathJaxVersion, "/es5/tex-chtml-full.js");
43149
43131
  script.async = true;
43150
43132
  document.body.appendChild(script);
43151
- }
43133
+ });
43152
43134
  };
43153
43135
  mathjaxScript.initializeMathJax = initializeMathJax;
43154
43136
  var normalization$1 = {};
@@ -102686,7 +102668,7 @@ getDefaultExportFromCjs(mathRendering);
102686
102668
  Object.defineProperty(exports, "__esModule", {
102687
102669
  value: true
102688
102670
  });
102689
- exports.initializeMathJaxScript = exports.getGlobal = exports.fixMathElements = exports.fixMathElement = exports["default"] = void 0;
102671
+ exports.getGlobal = exports.fixMathElements = exports.fixMathElement = exports["default"] = void 0;
102690
102672
  var _typeof2 = _interopRequireDefault(_typeof$3.exports);
102691
102673
  var _mathjaxScript = mathjaxScript;
102692
102674
  var _normalization = normalization$1;
@@ -102737,17 +102719,22 @@ getDefaultExportFromCjs(mathRendering);
102737
102719
  };
102738
102720
  var NEWLINE_BLOCK_REGEX = /\\embed\{newLine\}\[\]/g;
102739
102721
  var NEWLINE_LATEX = '\\newline ';
102722
+ var mathRenderingKEY = '@pie-lib/math-rendering@2';
102723
+ var mathRenderingAccessibleKEY = '@pie-lib/math-rendering-accessible@1';
102740
102724
  var getGlobal = function getGlobal() {
102741
102725
  if (typeof window !== 'undefined') {
102742
- if (!window[_mathjaxScript.mathRenderingAccessibleKEY]) {
102743
- window[_mathjaxScript.mathRenderingAccessibleKEY] = {};
102726
+ if (!window[mathRenderingAccessibleKEY]) {
102727
+ window[mathRenderingAccessibleKEY] = {};
102744
102728
  }
102745
- return window[_mathjaxScript.mathRenderingAccessibleKEY];
102729
+ return window[mathRenderingAccessibleKEY];
102746
102730
  } else {
102747
102731
  return {};
102748
102732
  }
102749
102733
  };
102750
102734
  exports.getGlobal = getGlobal;
102735
+ var defaultOpts = function defaultOpts() {
102736
+ return getGlobal().opts || ({});
102737
+ };
102751
102738
  var fixMathElement = function fixMathElement(element) {
102752
102739
  if (element.dataset.mathHandled) {
102753
102740
  return;
@@ -102812,84 +102799,80 @@ getDefaultExportFromCjs(mathRendering);
102812
102799
  }
102813
102800
  });
102814
102801
  };
102815
- var processMathJaxFullPage = function processMathJaxFullPage(executeOn) {
102816
- executeOn = executeOn || document.body;
102817
- var mathJaxInstance = getGlobal().instance;
102818
- if (mathJaxInstance) {
102819
- mathJaxInstance.texReset();
102820
- mathJaxInstance.typesetClear();
102821
- mathJaxInstance.typesetPromise([executeOn]).then(function () {
102822
- try {
102823
- removeExcessMjxContainers(executeOn);
102824
- removePlaceholdersAndRestoreDisplay();
102825
- var updatedDocument = mathJaxInstance.startup.document;
102826
- var list = updatedDocument.math.list;
102827
- for (var item = list.next; (0, _typeof2["default"])(item.data) !== 'symbol'; item = item.next) {
102828
- var mathMl = toMMl(item.data.root);
102829
- var parsedMathMl = mathMl.replaceAll('\n', '');
102830
- item.data.typesetRoot.setAttribute('data-mathml', parsedMathMl);
102831
- }
102832
- } catch (e) {
102833
- console.error('Error post-processing MathJax typesetting:', e.toString());
102834
- }
102835
- mathJaxInstance.startup.document.clear();
102836
- })["catch"](function (error) {
102837
- console.error('Error in typesetting with MathJax:', error);
102838
- });
102839
- }
102840
- };
102841
- var initializeMathJaxScript = function initializeMathJaxScript(renderOpts) {
102842
- if (!window.MathJaxInitialised) {
102843
- (0, _mathjaxScript.initializeMathJax)(renderOpts, processMathJaxFullPage);
102844
- }
102802
+ var getMathJaxCustomKey = function getMathJaxCustomKey() {
102803
+ var _window, _window$MathJax, _window2, _window2$MathJax, _window2$MathJax$conf;
102804
+ return ((_window = window) === null || _window === void 0 ? void 0 : (_window$MathJax = _window.MathJax) === null || _window$MathJax === void 0 ? void 0 : _window$MathJax.customKey) || ((_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$MathJax = _window2.MathJax) === null || _window2$MathJax === void 0 ? void 0 : (_window2$MathJax$conf = _window2$MathJax.config) === null || _window2$MathJax$conf === void 0 ? void 0 : _window2$MathJax$conf.customKey);
102845
102805
  };
102846
- exports.initializeMathJaxScript = initializeMathJaxScript;
102847
102806
  var renderMath = function renderMath(el, renderOpts) {
102848
102807
  var isString = typeof el === 'string';
102849
- var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
102850
102808
  var executeOn = document.body;
102851
102809
  if (isString) {
102852
102810
  var div = document.createElement('div');
102853
102811
  div.innerHTML = el;
102854
102812
  executeOn = div;
102855
102813
  }
102814
+ var _ref = renderOpts || ({}), skipWaitForMathRenderingLib = _ref.skipWaitForMathRenderingLib;
102856
102815
  var renderMathAccessible = function renderMathAccessible() {
102857
102816
  fixMathElements(executeOn);
102858
102817
  adjustMathMLStyle(executeOn);
102859
- if (!window.MathJaxInitialised) {
102860
- (0, _mathjaxScript.initializeMathJax)(renderOpts, function () {
102861
- return processMathJaxFullPage(executeOn);
102862
- });
102863
- return;
102818
+ var mathJaxCustomKey = getMathJaxCustomKey();
102819
+ if ((!window.MathJax || window.MathJax.version !== _mathjaxScript.MathJaxVersion) && !window.mathjaxLoadedP || mathJaxCustomKey && mathJaxCustomKey !== mathRenderingAccessibleKEY) {
102820
+ renderOpts = renderOpts || defaultOpts();
102821
+ (0, _mathjaxScript.initializeMathJax)(renderOpts);
102864
102822
  }
102865
- if (window.MathJaxLoaded) {
102866
- if (isString) {
102867
- try {
102868
- MathJax.texReset();
102869
- MathJax.typesetClear();
102870
- window.MathJax.typeset([executeOn]);
102871
- var updatedDocument = window.MathJax.startup.document;
102872
- var list = updatedDocument.math.list;
102873
- var item = list.next;
102874
- var mathMl = toMMl(item.data.root);
102875
- var parsedMathMl = mathMl.replaceAll('\n', '');
102876
- return parsedMathMl;
102877
- } catch (error) {
102878
- console.error('Error rendering math:', error.message);
102879
- return '';
102880
- }
102823
+ if (isString && window.MathJax && window.mathjaxLoadedP) {
102824
+ try {
102825
+ MathJax.texReset();
102826
+ MathJax.typesetClear();
102827
+ window.MathJax.typeset([executeOn]);
102828
+ var updatedDocument = window.MathJax.startup.document;
102829
+ var list = updatedDocument.math.list;
102830
+ var item = list.next;
102831
+ var mathMl = toMMl(item.data.root);
102832
+ var parsedMathMl = mathMl.replaceAll('\n', '');
102833
+ return parsedMathMl;
102834
+ } catch (error) {
102835
+ console.error('Error rendering math:', error.message);
102881
102836
  }
102882
- processMathJaxFullPage(executeOn);
102837
+ }
102838
+ if (window.mathjaxLoadedP) {
102839
+ window.mathjaxLoadedP.then(function () {
102840
+ var mathJaxInstance = getGlobal().instance;
102841
+ if (mathJaxInstance) {
102842
+ mathJaxInstance.texReset();
102843
+ mathJaxInstance.typesetClear();
102844
+ mathJaxInstance.typesetPromise([executeOn]).then(function () {
102845
+ try {
102846
+ removeExcessMjxContainers(executeOn);
102847
+ removePlaceholdersAndRestoreDisplay();
102848
+ var _updatedDocument = mathJaxInstance.startup.document;
102849
+ var _list = _updatedDocument.math.list;
102850
+ for (var _item = _list.next; (0, _typeof2["default"])(_item.data) !== 'symbol'; _item = _item.next) {
102851
+ var _mathMl = toMMl(_item.data.root);
102852
+ var _parsedMathMl = _mathMl.replaceAll('\n', '');
102853
+ _item.data.typesetRoot.setAttribute('data-mathml', _parsedMathMl);
102854
+ }
102855
+ } catch (e) {
102856
+ console.error('Error post-processing MathJax typesetting:', e.toString());
102857
+ }
102858
+ mathJaxInstance.startup.document.clear();
102859
+ })["catch"](function (error) {
102860
+ console.error('Error in typesetting with MathJax:', error);
102861
+ });
102862
+ }
102863
+ })["catch"](function (error) {
102864
+ console.error('Error in initializing MathJax:', error);
102865
+ });
102883
102866
  }
102884
102867
  };
102885
102868
  if (skipWaitForMathRenderingLib) {
102886
102869
  return renderMathAccessible();
102887
102870
  } else {
102888
- if (window.hasOwnProperty(_mathjaxScript.mathRenderingKEY) && window[_mathjaxScript.mathRenderingKEY].instance) {
102871
+ if (window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance) {
102889
102872
  removePlaceholdersAndRestoreDisplay();
102890
102873
  return mr.renderMath(executeOn, renderOpts);
102891
102874
  }
102892
- if (window.hasOwnProperty(_mathjaxScript.mathRenderingAccessibleKEY) && window[_mathjaxScript.mathRenderingAccessibleKEY].instance) {
102875
+ if (window.hasOwnProperty(mathRenderingAccessibleKEY) && window[mathRenderingAccessibleKEY].instance) {
102893
102876
  return renderMathAccessible();
102894
102877
  }
102895
102878
  var waitForMathRenderingLib = function waitForMathRenderingLib(renderMathAccessibleCallback) {
@@ -102899,7 +102882,7 @@ getDefaultExportFromCjs(mathRendering);
102899
102882
  var maxWaitTime = 500;
102900
102883
  var startTime = Date.now();
102901
102884
  var checkForLib = function checkForLib() {
102902
- var mathRenderingHasLoaded = window.hasOwnProperty(_mathjaxScript.mathRenderingKEY) && window[_mathjaxScript.mathRenderingKEY].instance;
102885
+ var mathRenderingHasLoaded = window.hasOwnProperty(mathRenderingKEY) && window[mathRenderingKEY].instance;
102903
102886
  var hasExceededMaxWait = Date.now() - startTime > maxWaitTime;
102904
102887
  if (mathRenderingHasLoaded || hasExceededMaxWait) {
102905
102888
  clearInterval(checkIntervalId);
@@ -102934,16 +102917,9 @@ var mmlToLatex = {};
102934
102917
  getDefaultExportFromCjs(mmlToLatex);
102935
102918
  (function (exports) {
102936
102919
  var _interopRequireDefault = interopRequireDefault.exports;
102937
- var _typeof = _typeof$3.exports;
102938
102920
  Object.defineProperty(exports, "__esModule", {
102939
102921
  value: true
102940
102922
  });
102941
- Object.defineProperty(exports, "initializeMathJaxScript", {
102942
- enumerable: true,
102943
- get: function get() {
102944
- return _renderMath.initializeMathJaxScript;
102945
- }
102946
- });
102947
102923
  Object.defineProperty(exports, "mmlToLatex", {
102948
102924
  enumerable: true,
102949
102925
  get: function get() {
@@ -102968,48 +102944,9 @@ getDefaultExportFromCjs(mmlToLatex);
102968
102944
  return _normalization.wrapMath;
102969
102945
  }
102970
102946
  });
102971
- var _renderMath = _interopRequireWildcard(renderMath$1);
102947
+ var _renderMath = _interopRequireDefault(renderMath$1);
102972
102948
  var _mmlToLatex = _interopRequireDefault(mmlToLatex);
102973
102949
  var _normalization = normalization$1;
102974
- function _getRequireWildcardCache(nodeInterop) {
102975
- if (typeof WeakMap !== "function") return null;
102976
- var cacheBabelInterop = new WeakMap();
102977
- var cacheNodeInterop = new WeakMap();
102978
- return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) {
102979
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
102980
- })(nodeInterop);
102981
- }
102982
- function _interopRequireWildcard(obj, nodeInterop) {
102983
- if (!nodeInterop && obj && obj.__esModule) {
102984
- return obj;
102985
- }
102986
- if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
102987
- return {
102988
- "default": obj
102989
- };
102990
- }
102991
- var cache = _getRequireWildcardCache(nodeInterop);
102992
- if (cache && cache.has(obj)) {
102993
- return cache.get(obj);
102994
- }
102995
- var newObj = {};
102996
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
102997
- for (var key in obj) {
102998
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
102999
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
103000
- if (desc && (desc.get || desc.set)) {
103001
- Object.defineProperty(newObj, key, desc);
103002
- } else {
103003
- newObj[key] = obj[key];
103004
- }
103005
- }
103006
- }
103007
- newObj["default"] = obj;
103008
- if (cache) {
103009
- cache.set(obj, newObj);
103010
- }
103011
- return newObj;
103012
- }
103013
102950
  })(mathRenderingAccessible);
103014
102951
  getDefaultExportFromCjs(mathRenderingAccessible);
103015
102952
  const require$$8$3 = _dll_react;