parrot_2 / import_markdown.py
aikubo's picture
Upload folder using huggingface_hub
23ead00 verified
raw
history blame contribute delete
369 Bytes
import markdown
# Open the file for reading and read the input to a temp variable
with open('tutorial_04.md', 'r') as f:
tempMd= f.read()
# Convert the input to HTML
tempHtml = markdown.markdown(tempMd)
# If necessary, could print or edit the results at this point.
# Open the HTML file and write the output.
with open('List.html', 'w') as f:
f.write(tempHtml)