mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-24 02:24:03 +03:00
Fixes #94. Thanks @natim. Only Markdown 2.0+ is supported currently.
This commit is contained in:
parent
e53c819cc7
commit
a07212389d
|
@ -370,6 +370,8 @@ else:
|
|||
# Markdown is optional
|
||||
try:
|
||||
import markdown
|
||||
if markdown.version_info < (2, 0):
|
||||
raise ImportError('Markdown < 2.0 is not supported.')
|
||||
|
||||
class CustomSetextHeaderProcessor(markdown.blockprocessors.BlockProcessor):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue
Block a user