def test_get_component(tag, expected):
    """Test getting a component from the component map.

    Args:
        tag: The tag to get.
        expected: The expected component.
    """
    md = Markdown.create("# Hello")
    assert tag in md.component_map  # pyright: ignore [reportAttributeAccessIssue]
    assert md.get_component(tag).tag == expected
Test getting a component from the component map.

    Args:
        tag: The tag to get.
        expected: The expected component.
    
tests/units/components/typography/test_markdown.py