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.
Change the
upload_html
endpoint toupload_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 thePost
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.