fixed broken links

This commit is contained in:
vabene1111
2020-03-27 21:41:55 +01:00
parent 6d5ea31f8e
commit 2c3140248c

View File

@@ -29,4 +29,4 @@ def delete_url(model, pk):
def markdown(value): def markdown(value):
tags = markdown_tags + ['pre', 'table', 'td', 'tr', 'th', 'tbody', 'style', 'thead'] tags = markdown_tags + ['pre', 'table', 'td', 'tr', 'th', 'tbody', 'style', 'thead']
parsed_md = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', MarkdownFormatExtension()]) parsed_md = md.markdown(value, extensions=['markdown.extensions.fenced_code', 'tables', MarkdownFormatExtension()])
return bleach.clean(parsed_md, tags, print_attrs, markdown_attrs) return bleach.clean(parsed_md, tags, markdown_attrs)