Apply https://github.com/klen/django_markdown/pull/12