deb17 / flask-modals

Modals for flask
MIT License
9 stars 12 forks source link

Cannot import name 'Markup' from 'jinja2' #2

Open emmett08 opened 1 year ago

emmett08 commented 1 year ago

Flask==2.1.1 Jinja2==3.1.1

In flask_modals/modal.py replace import Markup from jinja2

with

from jinja2.utils import markupsafe

markupsafe.Markup()

https://pypi.org/project/flask-modals-markupsafe/

Author and licence are unchanged.

mdeane07 commented 1 year ago

Hey, this issue seems to still be occuring some of the markup changes have been missed in the modal.py file.