used markdown instead of markdown2
This commit is contained in:
@@ -161,10 +161,9 @@ def doc_view(request):
|
||||
# insèrer le path de static/img
|
||||
texte = doc.texte.replace('static/img/', "%s/static/img/" % request.application_url)
|
||||
|
||||
# convertir mardown en HTML
|
||||
from markdown2 import Markdown
|
||||
markdowner = Markdown()
|
||||
texte = markdowner.convert(texte)
|
||||
# convertir markdown en HTML
|
||||
import markdown
|
||||
texte = markdown.markdown(texte)
|
||||
|
||||
return {
|
||||
'page_title': doc.intitule,
|
||||
|
||||
Reference in New Issue
Block a user