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.
- package/dist/components/MarkdownLatexRender/index.d.ts +3 -3
- package/dist/index.js +446 -59
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +446 -59
- package/dist/index.modern.js.map +1 -1
- package/dist/utils/latexExtractor.d.ts +42 -4
- package/package.json +1 -1
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
export declare class LatexExtractor {
|
|
2
|
-
private static
|
|
3
|
-
private static
|
|
4
|
-
|
|
5
|
-
|
|
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
|
}
|