Stefan4472 / Stefans-Blog

Personal blogging platform built in Python
MIT License
0 stars 0 forks source link

Upload posts as Markdown and render on backend #37

Closed Stefan4472 closed 2 years ago

Stefan4472 commented 2 years ago

Change the upload_html endpoint to upload_markdown. It should now accept a Markdown file and render it to HTML. Both files (original Markdown, as well as rendered HTML) will be saved. The rendered HTML will be saved exactly as the HTML is currently saved. The Markdown file will be added as a new field to the Post model.

Once this is done, enable search engine indexing of the Markdown files.

This is part of the change towards writing and managing drafts in the website itself.

Stefan4472 commented 2 years ago

Markdown files are now stored on the server. Allowing them to be edited and published through the website will be the job of other issues.