mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2025-12-24 02:39:20 -05:00
fixed markdown bleach renderer again
This commit is contained in:
@@ -30,4 +30,5 @@ def delete_url(model, pk):
|
||||
def markdown(value):
|
||||
tags = markdown_tags + ['pre', 'table', 'td', 'tr', 'th', 'tbody', 'style', 'thead']
|
||||
parsed_md = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', UrlizeExtension(), MarkdownFormatExtension()])
|
||||
markdown_attrs['*'] = markdown_attrs['*'] + ['class']
|
||||
return bleach.clean(parsed_md, tags, markdown_attrs)
|
||||
|
||||
Reference in New Issue
Block a user