Commit f74173a6 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers 🐦

allow markdown in track descriptions

parent aaa2b591
Pipeline #2443 passed with stage
in 4 minutes and 8 seconds
{% extends "fg_competitions/base_track.html" %}
{% load account %}
{% load account martortags %}
{% block head_title %}{{track}}{% endblock %}
{% block content_tab %}
<h2 class="sr-only">Details</h2>
<p class="lead">{{track.description}}</p>
<p class="lead">{{track.description|safe_markdown}}</p>
{% if track.owner %}
<p> Run by <a href="{{track.owner.get_absolute_url}}">{{track.owner}}</a></p>
......
{% extends "base.html" %}
{% load extra_utils %}
{% load extra_utils martortags %}
{% block head_title %}Competitions{% endblock %}
......@@ -32,7 +32,7 @@
<div class="card-body">
<h3 class="card-title"><a href="{{track.get_absolute_url}}">{{track}}</a></h3>
<h4 class="card-subtitle mb-2 text-muted">{{track.competition}}</h4>
<p class="card-text">{{track.description|default:""}}</p>
<p class="card-text">{{track.description|default:""|safe_markdown}}</p>
</div>
<div class="card-footer">
<div class="d-flex" style="text-algin: center">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment