mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-27 20:14:01 +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
|
# Markdown is optional
|
||||||
try:
|
try:
|
||||||
import markdown
|
import markdown
|
||||||
|
if markdown.version_info < (2, 0):
|
||||||
|
raise ImportError('Markdown < 2.0 is not supported.')
|
||||||
|
|
||||||
class CustomSetextHeaderProcessor(markdown.blockprocessors.BlockProcessor):
|
class CustomSetextHeaderProcessor(markdown.blockprocessors.BlockProcessor):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user