mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-06 05:20:12 +03:00
Merge b2ce307d78
into f09d28e6d6
This commit is contained in:
commit
c217a767fa
|
@ -232,7 +232,7 @@ try:
|
||||||
of '#' style headers to <h2>.
|
of '#' style headers to <h2>.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
extensions = ['headerid(level=2)']
|
extensions = settings.MARKDOWN_EXTENSIONS
|
||||||
safe_mode = False
|
safe_mode = False
|
||||||
md = markdown.Markdown(extensions=extensions, safe_mode=safe_mode)
|
md = markdown.Markdown(extensions=extensions, safe_mode=safe_mode)
|
||||||
return md.convert(text)
|
return md.convert(text)
|
||||||
|
|
|
@ -117,7 +117,10 @@ DEFAULTS = {
|
||||||
'UNICODE_JSON': True,
|
'UNICODE_JSON': True,
|
||||||
'COMPACT_JSON': True,
|
'COMPACT_JSON': True,
|
||||||
'COERCE_DECIMAL_TO_STRING': True,
|
'COERCE_DECIMAL_TO_STRING': True,
|
||||||
'UPLOADED_FILES_USE_URL': True
|
'UPLOADED_FILES_USE_URL': True,
|
||||||
|
|
||||||
|
# Markdown
|
||||||
|
'MARKDOWN_EXTENSIONS': ['headerid(level=2)']
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user