dcolish / flask-markdown

Markdown jinja2 extension for Flask
Other
199 stars 45 forks source link

support for the application factory pattern #17

Open WTRipper opened 7 years ago

WTRipper commented 7 years ago

At the moment I am not able to initiate flask-markdown with the application factory pattern. Would be nice if this will be supported in future.

from flaskext.markdown import Markdown
markdown = Markdown()
def create_app(config_name):
    app = Flask(__name__)
    markdown.init_app(app)

Btw standard flask extensions can be imported like from flask_markdown import Markdown. Why is it not like this?

ghost commented 6 years ago

Seconded, I would also like to see support for the application factory pattern. I may try to implement it on my own.

duarteocarmo commented 5 years ago

Would love to see this!

Demian87 commented 4 years ago

https://github.com/dcolish/flask-markdown/pull/20 Here is a request for it