django_markdown
django_markdown copied to clipboard
Preview is showing correctly, but the django is rendering plain text instead of markdown formatted
I am using 1.9 and I cannot get the formatted mardown text to show in my template, but it works correctly in the preview. I have followed all the instructions. Is this a 1.9 bug?
I think you need this at the top of your template page if you don't have it already:
{% load django_markdown %}
It worked for me (though using django 1.8)
I met the same problem today, and I load
{% load django_markdown %}
at the top of my template.
I met the same problem, though {% load django_markdown %}
did not solve the issue. I am working with Django 1.9 & django_markdown 2.6.8. Preview is working in the admin section (I had to modify the views.py to get it working), I just get plain text when the page is shown.
Here is my template:
{% extends 'blog/base.html' %}
{% load django_markdown %}
{% block content %}
<div>
<h1><a href="{% url 'section_detail' pk=section.pk %}">{{ section.title }}</a></h1>
<p>{{ section.text | safe | linebreaksbr }}</p>
</div>
{% endblock %}
Any clue appreciated.