From c20aae3efc130c6e129c89d2d758408588d931b4 Mon Sep 17 00:00:00 2001 From: vabene1111 Date: Fri, 7 Jan 2022 11:13:13 +0100 Subject: [PATCH] fixed markdown issue --- cookbook/templatetags/custom_tags.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cookbook/templatetags/custom_tags.py b/cookbook/templatetags/custom_tags.py index 6d813d4b..3b119cf3 100644 --- a/cookbook/templatetags/custom_tags.py +++ b/cookbook/templatetags/custom_tags.py @@ -3,6 +3,7 @@ from gettext import gettext as _ import bleach import markdown as md +from markdown.extensions.tables import TableExtension from bleach_allowlist import markdown_attrs, markdown_tags from django import template from django.db.models import Avg @@ -49,7 +50,7 @@ def markdown(value): parsed_md = md.markdown( value, extensions=[ - 'markdown.extensions.fenced_code', 'tables', + 'markdown.extensions.fenced_code', TableExtension(), UrlizeExtension(), MarkdownFormatExtension() ] )