import markdown
import codecs

# input_file=codecs.open("input.txt","r",encoding="utf-8")
# text=input_file.read()
# html=markdown.markdown(text,["tree"])
# output_file=codecs.open("output.html","w",encoding="utf-8",errors="xmlcharrefreplace")
# output_file.write(html)

# md=markdown.Markdown()
# html=md.convertFile(input="input.txt",output="output.html",encoding="utf-8")

