This commit is contained in:
Emmanouil Konstantinidis 2017-02-08 11:48:05 +00:00
parent 0832a8ab22
commit f51e349675
2 changed files with 1 additions and 3 deletions

View File

@ -817,8 +817,6 @@ class DocumentationRenderer(BaseRenderer):
}
def render(self, data, accepted_media_type=None, renderer_context=None):
#from coredocs.main import render as render_docs
#return render_docs(data, theme='cerulean', highlight='emacs', static=lambda path: '/static/rest_framework/docs/' + path)
template = loader.get_template(self.template)
context = self.get_context(data)
return template_render(template, context, request=renderer_context['request'])

View File

@ -40,7 +40,7 @@ class FencedCodeExtension(markdown.Extension):
@register.tag(name='code')
def highlight_code(parser,token):
def highlight_code(parser, token):
code = token.split_contents()[-1]
nodelist = parser.parse(('endcode',))
parser.delete_first_token()