import re


def get_article_titles(wikified_text):
    """
    Parses the wikipedia markup for a page and returns
    an array of article titles linked
    Will change unicode string to UTF-8
    """
    link_pattern = re.compile('\[\[.*?\]\]')
    linked_text = []
    iterator = link_pattern.finditer(wikified_text)
    for match in iterator:
        link = wikified_text[match.start()+2:match.end()-2].split('|', 1)
        link_title = link[0].encode("utf-8")
        linked_text.append(link_title.replace(' ', '_'))
    return linked_text