fixed markdown issue
This commit is contained in:
parent
5e2ca250b0
commit
c20aae3efc
@ -3,6 +3,7 @@ from gettext import gettext as _
|
|||||||
|
|
||||||
import bleach
|
import bleach
|
||||||
import markdown as md
|
import markdown as md
|
||||||
|
from markdown.extensions.tables import TableExtension
|
||||||
from bleach_allowlist import markdown_attrs, markdown_tags
|
from bleach_allowlist import markdown_attrs, markdown_tags
|
||||||
from django import template
|
from django import template
|
||||||
from django.db.models import Avg
|
from django.db.models import Avg
|
||||||
@ -49,7 +50,7 @@ def markdown(value):
|
|||||||
parsed_md = md.markdown(
|
parsed_md = md.markdown(
|
||||||
value,
|
value,
|
||||||
extensions=[
|
extensions=[
|
||||||
'markdown.extensions.fenced_code', 'tables',
|
'markdown.extensions.fenced_code', TableExtension(),
|
||||||
UrlizeExtension(), MarkdownFormatExtension()
|
UrlizeExtension(), MarkdownFormatExtension()
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user