def pandoctool(script_path, repopath, filelist):
    mdlist = [
        x.strip() for x in filelist if x.strip()[len(x.strip()) - 3:] == ".md"
    ]
    for filepath in mdlist:
        convert(filepath, repopath)
    return
def pandoctool_smartgit(script_path, repopath, filelist_temp):
    file = open(filelist_temp, "r")
    filelist = file.readlines()
    file.close()
    repopath = repopath.replace("\\", "/")
    mdlist = [
        x.strip().replace("\\", "/")[len(repopath) + 1:] for x in filelist
        if x.strip()[len(x.strip()) - 3:] == ".md"
    ]
    for filepath in mdlist:
        convert(filepath, repopath)
    return