File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
src/client/components/ChatV2 Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,6 @@ const _preprocessMath = (content: string): string => {
24
24
} )
25
25
26
26
processedContent = processedContent
27
-
28
- // Convert Latex align environments -> Katex aligned display math
29
- . replace ( / \\ b e g i n \{ (?: a l i g n \* ? | a l i g n e d ) \} ( [ \s \S ] * ?) \\ e n d \{ (?: a l i g n \* ? | a l i g n e d ) \} / g, ( _ , innerContent ) => {
30
- const alignedLines = innerContent
31
- . split ( '\n' )
32
- . map ( ( line ) => line . trim ( ) )
33
- . filter ( ( line ) => line . length > 0 )
34
- . join ( ' \\\\\n' )
35
- return `$$\n\\begin{aligned}\n${ alignedLines } \n\\end{aligned}\n$$`
36
- } )
37
-
38
27
// Convert Latex display math \[...\] -> Katex display math `$$...$$`
39
28
. replace ( / \\ \[ ( [ \s \S ] * ?) \\ \] / g, ( match , innerContent : string ) => {
40
29
return `\n$$\n${ innerContent . replaceAll ( '\n' , ' ' ) . trim ( ) } \n$$\n`
You can’t perform that action at this time.
0 commit comments