Fix code review comments
This commit is contained in:
parent
e65277e6ee
commit
d246879069
|
@ -283,8 +283,7 @@ def materials_document(request, document, num=None, ext=None):
|
|||
content_type = content_type.replace("plain", "markdown", 1)
|
||||
break
|
||||
elif atype[0] == "text/html":
|
||||
bytes = render(
|
||||
request,
|
||||
bytes = render_to_string(
|
||||
"minimal.html",
|
||||
{
|
||||
"content": markdown.markdown(bytes.decode(encoding=chset)),
|
||||
|
|
Loading…
Reference in a new issue