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