miguelgrinberg / Flask-PageDown

Implementation of StackOverflow's "PageDown" markdown editor for Flask and Flask-WTF.
MIT License
244 stars 21 forks source link

Added optional argument to specify paths to alternate scripts #14

Closed J08nY closed 5 years ago

J08nY commented 8 years ago

Added optional argument to specify paths to alternate scripts Markdown.Sanitizer and Markdown.Converter.

If none are specified the cdnjs.cloudflare default is used.

Example usage such as:

{{ pagedown.include_pagedown([url_for(".static",filaname="js/md.sanitizer.min.js"),
                              url_for(".static",filename="js/md.converter.min.js")]) }}
J08nY commented 8 years ago

Changed it a bit, however I think using url_for is not the right way since people might use a different endpoint for their third party scripts or a blueprint static folder like in my example, so I would leave crafting the path to the user.

J08nY commented 8 years ago

This could be possibly expanded to also handle other custom js files as a third optional parameter, would make #13 possible easier.

miguelgrinberg commented 5 years ago

This issue will be automatically closed due to being inactive for more than six months. Seeing that I haven't responded to your last comment, it is quite possible that I have dropped the ball on this issue and I apologize about that. If that is the case, do not take the closing of the issue personally as it is an automated process doing it, just reopen it and I'll get back to you.