Showing
1 changed file
with
15 additions
and
9 deletions
@@ -82,15 +82,21 @@ class MdWidget extends StatelessWidget { | @@ -82,15 +82,21 @@ class MdWidget extends StatelessWidget { | ||
82 | (e) => TableRow( | 82 | (e) => TableRow( |
83 | children: List.generate( | 83 | children: List.generate( |
84 | maxCol, | 84 | maxCol, |
85 | - (index) => Center( | ||
86 | - child: MdWidget( | ||
87 | - (e[index] ?? "").trim(), | ||
88 | - textDirection: textDirection, | ||
89 | - onLinkTab: onLinkTab, | ||
90 | - style: style, | ||
91 | - latexWorkaround: latexWorkaround, | ||
92 | - ), | ||
93 | - ), | 85 | + (index) { |
86 | + String data = e[index] ?? ""; | ||
87 | + if (RegExp(r"^---+$").hasMatch(data.trim())) { | ||
88 | + return const SizedBox(); | ||
89 | + } | ||
90 | + return Center( | ||
91 | + child: MdWidget( | ||
92 | + (e[index] ?? "").trim(), | ||
93 | + textDirection: textDirection, | ||
94 | + onLinkTab: onLinkTab, | ||
95 | + style: style, | ||
96 | + latexWorkaround: latexWorkaround, | ||
97 | + ), | ||
98 | + ); | ||
99 | + }, | ||
94 | ), | 100 | ), |
95 | ), | 101 | ), |
96 | ) | 102 | ) |
-
Please register or login to post a comment