def METHOD_NAME(filename):
    """Does the path exist and file ends in .md"""
    real_filename = Path(filename).relative_to(".")
    is_dir(real_filename.parent)
    if real_filename.suffix != ".md":
        raise argparse.ArgumentTypeError(f"{filename} is not a `.md` file.")
    return real_filename