@@ -0,0 +1,961 @@
+#!/usr/local/bin/env python3%0A%0A# imports%0Aimport sys%0Aimport io%0A%0Adef main():%0A    # Check if there are enough cl args and if the .md file exists and if the file is a markdown file%0A    if len(sys.argv) %3E 1:%0A        # check if an html file of the same name exists%0A        # if so prompt user if they want to override the previous itteration of the file%0A        # pass contents of file to the parser code%0A        with io.open(sys.argv%5B1%5D) as f:%0A            parse(f.readlines())%0A        f.close()%0A    else:%0A        # if no file was passed%0A        if len(sys.argv) == 1:%0A            print(%22No file was passed%22)%0A        # if an invalid file was passed (ie not markdown)%0A        # if the file just doesn't exist%0A    return%0A%0Adef parse(md):%0A    # parse markdown to html%0A    # write to an html file of the same name%0A    with io.open('note.html', 'w') as f:%0A        for line in md:%0A            f.write(line)%0A        f.close()%0A    return%0A%0Aif __name__ == '__main__':%0A    main()%0A

Add mdparse.py