acsi-core 0.9.5 → 0.9.6
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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +1 -1
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1674,7 +1674,7 @@ var LatexExtractor = /*#__PURE__*/function () {
|
|
|
1674
1674
|
var allComponents = LatexExtractor.extractAllLatexUltimate(content);
|
|
1675
1675
|
var multiLineFormulas = LatexExtractor.extractMultiLineFormulas(content);
|
|
1676
1676
|
var foundLatexStr = multiLineFormulas[0] || "";
|
|
1677
|
-
if (foundLatexStr && foundLatexStr !== "" &&
|
|
1677
|
+
if (foundLatexStr && foundLatexStr !== "" && allComponents.length > 0) {
|
|
1678
1678
|
var firstPosition = content.indexOf(allComponents[0]);
|
|
1679
1679
|
if (firstPosition > 0) {
|
|
1680
1680
|
var textPart = content.slice(0, firstPosition).trim();
|