def extract_title_md(md_file):
    """ Return the first level 1 md title (without # and trailing newline) """
    with open(md_file, "r") as f:
        #text = f.read()
        line=''
        while ('# ' not in line):
            line = f.readline()
    return line.lstrip('# ').rstrip('\n')