neutronX / django-markdownx

Comprehensive Markdown plugin built for Django
https://neutronx.github.io/django-markdownx/
Other
863 stars 153 forks source link

Added ``MARKDOWNX_MARKDOWNIFY_WITH_REQUEST`` setting. #203

Open jagaudin opened 3 years ago

jagaudin commented 3 years ago

This PR adds a setting MARKDOWNX_MARKDOWNIFY_WITH_REQUEST to make the request object available to the markdownify function. This can be used for example to sanitize the HTML output based on user permissions.