<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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