def on_markdown_table_of_contents_selected(
        self, event: Markdown.TableOfContentsSelected
    ) -> None:
        """Handle the user selecting something from the table of contents.

        Args:
            event: The table of contents selection event to handle.
        """
        self.query_one(Viewer).scroll_to_block(event.block_id)
Handle the user selecting something from the table of contents.

        Args:
            event: The table of contents selection event to handle.
        
frogmouth/screens/main.py