Add markdown support to post body
Implemented markdown support in the post body to enhance text formatting capabilities. This change allows users to enter markdown in the create/update interface and have it rendered as HTML in the main blog interface. The markdown library was imported and utilized to convert markdown text to HTML in the blog index view. Additionally, updated the form labels to indicate markdown support and ensured safe rendering of HTML content in the blog index template. Issue ID: FLAS-67
This commit is contained in:
parent
79a1de9968
commit
1d75c45a1d
5 changed files with 8 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import os
|
||||
|
||||
from flask import Flask, request, g
|
||||
import markdown
|
||||
|
||||
|
||||
def create_app(test_config=None):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue