http://bentasker.i2p/posts/blog/general/migrating-a-html-site-into-a-markdown-static-site-generator.html
I also needed to populate the metadata at the top of the document: s = [
'---',
f'title: {details["title"]}',
f'slug: {details["slug"]}',
'type: text',
'author: Ben Tasker',
f'date: {details["published"]}',
f'tags: {tags}',
f'category: {details["mainCategory"]}',
] I had been expecting that I might need to jump through a few hoops to turn HTML into markdown, but that turned out not to be the case: pip has a conversion module : pip install markdownify Usage is...