@@ -478,7 +478,7 @@ def __init__(self, headers: list[Text], rows: list[list[Text]]):
478478 def render (self ) -> Table :
479479 table = Table (
480480 expand = True ,
481- box = box .SIMPLE_HEAVY ,
481+ box = box .SIMPLE_HEAD ,
482482 style = self .rich_style ,
483483 header_style = self .get_component_rich_style ("markdown-table--header" ),
484484 border_style = self .get_component_rich_style ("markdown-table--lines" ),
@@ -504,7 +504,7 @@ class MarkdownTable(MarkdownBlock):
504504 DEFAULT_CSS = """
505505 MarkdownTable {
506506 width: 100%;
507- background: $surface ;
507+ background: $background 80% ;
508508 }
509509 """
510510
@@ -635,7 +635,7 @@ def _block(self) -> Syntax:
635635 self .code ,
636636 lexer = self .lexer ,
637637 word_wrap = False ,
638- indent_guides = True ,
638+ indent_guides = self . _markdown . code_indent_guides ,
639639 padding = (1 , 2 ),
640640 theme = self .theme ,
641641 )
@@ -722,6 +722,9 @@ class Markdown(Widget):
722722 code_light_theme : reactive [str ] = reactive ("material-light" )
723723 """The theme to use for code blocks when the App theme is light."""
724724
725+ code_indent_guides : reactive [bool ] = reactive (True )
726+ """Should code fences display indent guides?"""
727+
725728 def __init__ (
726729 self ,
727730 markdown : str | None = None ,
@@ -1157,6 +1160,9 @@ class MarkdownViewer(VerticalScroll, can_focus=False, can_focus_children=True):
11571160 """
11581161
11591162 show_table_of_contents = reactive (True )
1163+ """Show the table of contents?"""
1164+ code_indent_guides : reactive [bool ] = reactive (True )
1165+ """Should code fences display indent guides?"""
11601166 top_block = reactive ("" )
11611167
11621168 navigator : var [Navigator ] = var (Navigator )
@@ -1241,7 +1247,7 @@ def compose(self) -> ComposeResult:
12411247 parser_factory = self ._parser_factory , open_links = self ._open_links
12421248 )
12431249 markdown .can_focus = True
1244- yield markdown
1250+ yield markdown . data_bind ( MarkdownViewer . code_indent_guides )
12451251 yield MarkdownTableOfContents (markdown )
12461252
12471253 def _on_markdown_table_of_contents_updated (
0 commit comments