@@ -417,7 +417,7 @@ public function render(): void
417417 continue ;
418418 }
419419
420- if ($ isHeader && !$ isHeaderSeparatorRendered ) {
420+ if ($ isHeader && !$ isHeaderSeparatorRendered && $ this -> style -> displayOutsideBorder () ) {
421421 $ this ->renderRowSeparator (
422422 self ::SEPARATOR_TOP ,
423423 $ hasTitle ? $ this ->headerTitle : null ,
@@ -449,7 +449,10 @@ public function render(): void
449449 }
450450 }
451451 }
452- $ this ->renderRowSeparator (self ::SEPARATOR_BOTTOM , $ this ->footerTitle , $ this ->style ->getFooterTitleFormat ());
452+
453+ if ($ this ->getStyle ()->displayOutsideBorder ()) {
454+ $ this ->renderRowSeparator (self ::SEPARATOR_BOTTOM , $ this ->footerTitle , $ this ->style ->getFooterTitleFormat ());
455+ }
453456
454457 $ this ->cleanup ();
455458 $ this ->rendered = true ;
@@ -868,6 +871,12 @@ private function cleanup(): void
868871 */
869872 private static function initStyles (): array
870873 {
874+ $ markdown = new TableStyle ();
875+ $ markdown
876+ ->setDefaultCrossingChar ('| ' )
877+ ->setDisplayOutsideBorder (false )
878+ ;
879+
871880 $ borderless = new TableStyle ();
872881 $ borderless
873882 ->setHorizontalBorderChars ('= ' )
@@ -905,6 +914,7 @@ private static function initStyles(): array
905914
906915 return [
907916 'default ' => new TableStyle (),
917+ 'markdown ' => $ markdown ,
908918 'borderless ' => $ borderless ,
909919 'compact ' => $ compact ,
910920 'symfony-style-guide ' => $ styleGuide ,
0 commit comments