import re


def get_first_section(wikified_text):
    """
    Parses the wikipedia markup for a page and returns
    the firs tsection
    """
    title_pattern = re.compile('==.*?==')
    iterator = title_pattern.finditer(wikified_text)
    content_start = 0
    content = ''
    for match in iterator:
        content = wikified_text[content_start:match.start()].encode("utf-8")
        break
    return content