[mail] Utilisation de python-misaka pour render le markdown
pour pouvoir faire des tableau entre autres
This commit is contained in:
parent
a363ddc19c
commit
c5c70e56b3
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,12 @@ from email.message import Message
|
|||
from email.mime.multipart import MIMEMultipart
|
||||
from email.mime.text import MIMEText
|
||||
from email.Utils import formatdate
|
||||
from markdown import markdown
|
||||
try:
|
||||
import misaka
|
||||
def markdown(text):
|
||||
return misaka.html(text, misaka.EXT_TABLES)
|
||||
except ImportError:
|
||||
from markdown import markdown
|
||||
from locale_util import setlocale
|
||||
|
||||
if '/usr/scripts' not in sys.path:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue