Skip to content

Commit

Permalink
Merge pull request #145 from level12/144-replace-commonmark
Browse files Browse the repository at this point in the history
Replace commonmark with markdown-it-py
  • Loading branch information
guruofgentoo authored Jan 20, 2022
2 parents 80d71b6 + 16d2334 commit 8b4822d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions keg_auth/mail.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -20,7 +20,7 @@ def mail_template(template_name_or_list, **kwargs):
return MailParts(
normalizews(subject),
markdown,
commonmark.commonmark(markdown)
MarkdownIt().render(markdown)
)


Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
zip_safe=False,
install_requires=[
'bcrypt',
'commonmark',
'markdown-it-py',

'Flask-Login>0.4.1',
'Keg>=0.8.6',
Expand Down

0 comments on commit 8b4822d

Please sign in to comment.