def get_title(til_file):
    """Read the file until we hit the first line that starts with a #
    indicating a title in markdown.  We'll use that as the title for this
    entry."""
    with open(til_file) as file:
        for line in file:
            line = line.strip()
            if line.startswith("#"):
                return line[1:].lstrip()