mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-22 17:47:04 +03:00
Remove safe_mode since it is not safe.
This commit is contained in:
parent
2704036ad5
commit
276bc3bc2b
|
@ -160,8 +160,7 @@ try:
|
|||
"""
|
||||
|
||||
extensions = ['headerid(level=2)']
|
||||
safe_mode = False
|
||||
md = markdown.Markdown(extensions=extensions, safe_mode=safe_mode)
|
||||
md = markdown.Markdown(extensions=extensions)
|
||||
return md.convert(text)
|
||||
except ImportError:
|
||||
apply_markdown = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user