Skip to content

Commit c2f13dd

Browse files
committed
fix: fix Latex Building Exception
1 parent a69cfb8 commit c2f13dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class MathEquationBlockComponentWidgetState
139139
);
140140
}
141141

142-
String _safeLatex(String raw) {
142+
String safeLatex(String raw) {
143143
if (raw.contains(r'\\') && !raw.contains(r'\begin{')) {
144144
return r'\begin{aligned}' + raw + r'\end{aligned}';
145145
}
@@ -232,7 +232,7 @@ class MathEquationBlockComponentWidgetState
232232

233233
return Center(
234234
child: Math.tex(
235-
_safeLatex(formula),
235+
safeLatex(formula),
236236
textStyle: const TextStyle(fontSize: 20),
237237
),
238238
);

0 commit comments

Comments
 (0)