Commit graph

3 commits

Author SHA1 Message Date
Neo
50d6984188 Add SimpleMDE to blog edit pages
Integrate SimpleMDE editor into the blog create and update
pages to enhance the user experience with a WYSIWYG markdown
editor. This change includes adding the necessary CSS and JS
links to the templates and applying specific styles for both
light and dark modes in the stylesheet.

The SimpleMDE editor provides a more intuitive interface for
users to write and format their blog posts, addressing the
requirement outlined in the issue description. The changes
ensure that the editor is initialized on the textarea elements
for both creating and updating blog posts.

Related to Issue ID: FLAS-30
2024-09-09 22:03:35 +00:00
Neo
1d2f1348a4 Add markdown support to post body
Implemented markdown support in the post body to enhance the
editor's functionality. The main blog view now renders markdown
content as HTML. This change allows users to format their posts
using markdown syntax, providing a richer text editing experience.

- Imported the markdown module in blog.py.
- Converted post bodies from markdown to HTML in the index view.
- Updated templates to indicate markdown support in the post body
  field.
- Ensured safe rendering of HTML content in the blog index view.

Fixes #FLAS-29
2024-09-09 21:36:16 +00:00
Jose Palazon
127440c727 I just want the tutorial 2024-09-06 00:18:20 +01:00
Renamed from examples/tutorial/flaskr/templates/blog/create.html (Browse further)