eat-js-sdk 2.5.10 → 2.5.11
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.
|
@@ -5461,8 +5461,9 @@ async function getMathJaxSpeechText(html2) {
|
|
|
5461
5461
|
try {
|
|
5462
5462
|
await typesetMathJax(staging);
|
|
5463
5463
|
staging.querySelectorAll("mjx-container").forEach((container) => {
|
|
5464
|
-
const
|
|
5465
|
-
|
|
5464
|
+
const assistive = container.querySelector("mjx-assistive-mml");
|
|
5465
|
+
const text2 = assistive?.textContent?.trim() ?? "";
|
|
5466
|
+
container.replaceWith(document.createTextNode(text2));
|
|
5466
5467
|
});
|
|
5467
5468
|
return staging.textContent?.trim() ?? "";
|
|
5468
5469
|
} finally {
|