acsi-core 0.9.7 → 0.9.8

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.
@@ -1,6 +1,44 @@
1
1
  export declare class LatexExtractor {
2
- private static extractAllLatexUltimate;
3
- private static extractMultiLineFormulas;
4
- private static isMathFormula;
5
- static ApplyLatexFormat(content: string): string;
2
+ private static readonly LATEX_COMMANDS;
3
+ private static readonly LATEX_PATTERNS;
4
+ /**
5
+ * Checks if a text segment is likely a LaTeX formula
6
+ */
7
+ private static isLatexFormula;
8
+ /**
9
+ * Quick check to see if content has any mathematical indicators before processing
10
+ */
11
+ private static hasAnyMathematicalContent;
12
+ /**
13
+ * Checks if content is already wrapped with mathematical delimiters
14
+ */
15
+ static isAlreadyWrapped(content: string): boolean;
16
+ /**
17
+ * Extracts content from existing $ or $$ wrappers
18
+ */
19
+ private static extractExistingMathContent;
20
+ /**
21
+ * Extracts LaTeX formulas from text using heuristic patterns
22
+ */
23
+ private static extractLatexFormulas;
24
+ /**
25
+ * Identifies complete LaTeX expressions in text
26
+ */
27
+ private static findLatexExpressions;
28
+ /**
29
+ * Finds mathematical expressions that are separated by commas
30
+ */
31
+ private static findKeywordSeparatedExpressions;
32
+ /**
33
+ * Main method to apply LaTeX formatting by wrapping formulas with $$
34
+ */
35
+ static applyLatexFormat(content: string): string;
36
+ /**
37
+ * Alternative method for simpler line-by-line processing
38
+ */
39
+ static applyLatexFormatSimple(content: string): string;
40
+ /**
41
+ * Processes content to wrap comma-separated mathematical formulas
42
+ */
43
+ private static processCommaSeparatedFormulas;
6
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "acsi-core",
3
- "version": "0.9.7",
3
+ "version": "0.9.8",
4
4
  "description": "Contains core components && functions for acsi-core project",
5
5
  "author": "brss",
6
6
  "license": "MIT",