render commonmark
This commit is contained in:
parent
464976c482
commit
13cec1e911
|
@ -1,5 +1,6 @@
|
||||||
{% extends 'base.html' %}
|
{% extends 'base.html' %}
|
||||||
{% load static from staticfiles %}
|
{% load static from staticfiles %}
|
||||||
|
{% load commonmark %}$
|
||||||
|
|
||||||
{% block title %}
|
{% block title %}
|
||||||
Info | {{ block.super }}
|
Info | {{ block.super }}
|
||||||
|
@ -48,14 +49,14 @@ Info | {{ block.super }}
|
||||||
<div class="panel panel-default">
|
<div class="panel panel-default">
|
||||||
<div class="panel-heading">
|
<div class="panel-heading">
|
||||||
<span class="sub-anchor" id="{{ item.anchor }}"></span>
|
<span class="sub-anchor" id="{{ item.anchor }}"></span>
|
||||||
<h4 class="panel-title">{{ item.headline }}
|
<h4 class="panel-title">{{ item.headline }}
|
||||||
<a href="#{{ item.anchor }}">
|
<a href="#{{ item.anchor }}">
|
||||||
<i class="glyphicon glyphicon-link"></i>
|
<i class="glyphicon glyphicon-link"></i>
|
||||||
</a>
|
</a>
|
||||||
</h4>
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>{{ item.body }}</p>
|
<p>{{ item.body|commonmark }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Reference in a new issue