diff --git a/keg_auth/mail.py b/keg_auth/mail.py index 0507ce8..4e4b414 100644 --- a/keg_auth/mail.py +++ b/keg_auth/mail.py @@ -1,8 +1,8 @@ from collections import namedtuple from blazeutils.strings import normalizews -import commonmark import flask +from markdown_it import MarkdownIt try: import flask_mail @@ -20,7 +20,7 @@ def mail_template(template_name_or_list, **kwargs): return MailParts( normalizews(subject), markdown, - commonmark.commonmark(markdown) + MarkdownIt().render(markdown) ) diff --git a/setup.py b/setup.py index 363bafe..2c0ddf2 100644 --- a/setup.py +++ b/setup.py @@ -32,7 +32,7 @@ zip_safe=False, install_requires=[ 'bcrypt', - 'commonmark', + 'markdown-it-py', 'Flask-Login>0.4.1', 'Keg>=0.8.6',