<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def markdown_file_to_intermediary(filename):
 """ Parse a file and return to intermediary syntax. """

    with open(filename) as f:
        lines = f.readlines()
    return line_iterator_to_intermediary(lines)