def extract_card(text, config, image_search_path):
    """ Extract card data based on the provided texts. """
    card = CardData()
    parser = CardParser(card, config, image_search_path)
    misaka.Markdown(parser, extensions=markdown.ENABLED_EXTENSIONS)(text)

    return card
Extract card data based on the provided texts.