You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: frontend/appflowy_flutter/lib/plugins/document/presentation/editor_plugins/math_equation/math_equation_block_component.dart
+8-6Lines changed: 8 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -138,6 +138,13 @@ class MathEquationBlockComponentWidgetState
138
138
child:_build(context),
139
139
);
140
140
}
141
+
142
+
String_safeLatex(String raw) {
143
+
if (raw.contains(r'\\') &&!raw.contains(r'\begin{')) {
144
+
returnr'\begin{aligned}'+ raw +r'\end{aligned}';
145
+
}
146
+
return raw;
147
+
}
141
148
142
149
Widget_build(BuildContext context) {
143
150
Widget child =Container(
@@ -222,12 +229,7 @@ class MathEquationBlockComponentWidgetState
222
229
}
223
230
224
231
Widget_buildMathEquation(BuildContext context) {
225
-
String_safeLatex(String raw) {
226
-
if (raw.contains(r'\\') &&!raw.contains(r'\begin{')) {
0 commit comments