1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
theorangeone.net-legacy/templates/markdown.html

19 lines
600 B
HTML
Raw Permalink Normal View History

2015-10-19 13:04:49 +01:00
{% extends 'base.html' %}
{% block htmltitle %}{% titleMD %}{% endblock %}{% endblock %}
{% block headercontent %}
{% block headerMD %}{% endblock %}
{% endblock %}
{% block content%}
<div class="container" id="markdown-container">
<pre>
{% autoescape off %}
{% block contentMD %}{% endblock %}
{% endautoescape %}
</pre></div>
<script type="text/javascript" src="{% static 'js/markdown.js'%}"></script>
<script>$('#markdown-container > pre')[0].innerHTML = markdown.toHTML($('#markdown-container > pre')[0].innerHTML); </script>
{% endblock %}