aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pyblackbird_cc/templates/resources/resource_list.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/pyblackbird_cc/templates/resources/resource_list.html b/pyblackbird_cc/templates/resources/resource_list.html
index eb2506a..f7e705c 100644
--- a/pyblackbird_cc/templates/resources/resource_list.html
+++ b/pyblackbird_cc/templates/resources/resource_list.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
{% load static %}
+{% load markdown_extras %}
{% block title %}
Joanna Lemon Learning - Resource List
@@ -60,7 +61,7 @@
<span class="badge bg-secondary me-2">{{ resource.age_range }}</span>
</div>
</div>
- <p class="card-text my-3">{{ resource.description }}</p>
+ <p class="card-text my-3">{{ resource.description | markdown | safe }}</p>
<a href="{% url 'resources:resource_detail' resource_id=resource.id %}"
class="btn btn-primary">Details</a>
</div>
@@ -97,7 +98,7 @@
<span class="badge bg-secondary me-2">{{ resource.age_range }}</span>
</div>
</div>
- <p class="card-text my-3">{{ resource.description }}</p>
+ <p class="card-text my-3">{{ resource.description | markdown | safe }}</p>
<a href="{% url 'resources:resource_detail' resource_id=resource.id %}"
class="btn btn-primary">Details</a>
</div>