@drghaliasri/butex 8.0.2 → 8.0.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.
- package/dist/document-cli.js +73 -2
- package/dist/document-cli.js.map +1 -1
- package/dist/document.js +6 -2
- package/dist/document.js.map +1 -1
- package/dist/document.mjs +6 -2
- package/dist/document.mjs.map +1 -1
- package/dist/react-document.js +6 -2
- package/dist/react-document.js.map +1 -1
- package/dist/react-document.mjs +6 -2
- package/dist/react-document.mjs.map +1 -1
- package/package.json +1 -1
package/dist/document.mjs
CHANGED
|
@@ -8047,9 +8047,13 @@ function digitsMappingFromDigitForm(digitForm) {
|
|
|
8047
8047
|
}
|
|
8048
8048
|
return "arabicdigits";
|
|
8049
8049
|
}
|
|
8050
|
+
function editorMathLatexForCompile(token) {
|
|
8051
|
+
const source = token.math && token.sourceSide === "arabic" && token.source.includes("\\begin{cases}") ? mathTokenSourceForSide(token, "arabic", void 0, true) : token.source;
|
|
8052
|
+
return mirrorBuTeXOperatorsInTex(source, { target: "compile" });
|
|
8053
|
+
}
|
|
8050
8054
|
function mathBodyLatex(token) {
|
|
8051
8055
|
if (token.sourceOwner === "editor") {
|
|
8052
|
-
return stripDisplayMathDelimiters(
|
|
8056
|
+
return stripDisplayMathDelimiters(editorMathLatexForCompile(token));
|
|
8053
8057
|
}
|
|
8054
8058
|
if (!token.math || token.sourceOwner === "raw") {
|
|
8055
8059
|
return stripDisplayMathDelimiters(token.source);
|
|
@@ -8124,7 +8128,7 @@ ${body}
|
|
|
8124
8128
|
\\end{equation}`;
|
|
8125
8129
|
}
|
|
8126
8130
|
if (token.sourceOwner === "editor") {
|
|
8127
|
-
return
|
|
8131
|
+
return editorMathLatexForCompile(token);
|
|
8128
8132
|
}
|
|
8129
8133
|
if (!token.math || token.sourceOwner === "raw") {
|
|
8130
8134
|
return token.source;
|