used markdown instead of markdown2

This commit is contained in:
2022-12-12 10:41:24 +01:00
parent b7aac74bd7
commit ec0d0ce262
5 changed files with 70 additions and 71 deletions

View File

@@ -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,