Migrate mistune to markdown
This commit is contained in:
parent
412945626b
commit
77aaae6735
46 changed files with 5112 additions and 420 deletions
|
@ -26,7 +26,7 @@
|
|||
<p>Authors: {{ link_users(authors) }}</p>
|
||||
{% endif %}
|
||||
{% endwith %}
|
||||
{{ solution.content|markdown('solution', MATH_ENGINE)|reference|str|safe }}
|
||||
{{ solution.content|markdown|reference|str|safe }}
|
||||
</div>
|
||||
<hr>
|
||||
{% include "comments/list.html" %}
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
{% endif %}
|
||||
<div class='blog-description content-description'>
|
||||
{% cache 86400 'problem_html' problem.id MATH_ENGINE LANGUAGE_CODE %}
|
||||
{{ problem.description|markdown("problem", MATH_ENGINE)|reference|str|safe }}
|
||||
{{ problem.description|markdown|reference|str|safe }}
|
||||
{% endcache %}
|
||||
{% if problem.pdf_description %}
|
||||
<embed src="{{url('problem_pdf_description', problem.code)}}" width="100%" height="500" type="application/pdf" style="margin-top: 0.5em">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{{ preview_data|markdown('problem', MATH_ENGINE)|reference|str|safe }}
|
||||
{{ preview_data|markdown|reference|str|safe }}
|
||||
{% if REQUIRE_JAX %}
|
||||
<div data-config="{{ static('mathjax_config.js') }}" class="require-mathjax-support"></div>
|
||||
{% endif %}
|
|
@ -376,7 +376,7 @@
|
|||
{% endif %}
|
||||
|
||||
{% cache 86400 'problem_html' problem.id MATH_ENGINE LANGUAGE_CODE %}
|
||||
{{ description|markdown("problem", MATH_ENGINE)|reference|str|safe }}
|
||||
{{ description|markdown|reference|str|safe }}
|
||||
{% endcache %}
|
||||
|
||||
{% if problem.pdf_description %}
|
||||
|
@ -426,7 +426,7 @@
|
|||
<div class="problem-clarification">
|
||||
<div class="time">{{ relative_time(clarification.date) }}</div>
|
||||
<span class="body">
|
||||
{{ clarification.description|markdown('problem', MATH_ENGINE)|reference }}
|
||||
{{ clarification.description|markdown|reference }}
|
||||
</span>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
|
|
@ -3,8 +3,11 @@
|
|||
<head>
|
||||
<link rel="stylesheet" href="{{ static('style.css') }}">
|
||||
<link rel="stylesheet" href="{{ static('pygment-github.css') }}" type="text/css">
|
||||
<link rel="stylesheet" href="{{ static('markdown.css') }}">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="pygment-github.css" type="text/css">
|
||||
<link rel="stylesheet" href="markdown.css">
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<style>
|
||||
html {
|
||||
|
@ -87,7 +90,7 @@
|
|||
</div>
|
||||
<hr style="clear: both;">
|
||||
<div class="content-description printing">
|
||||
{{ description|markdown('problem', 'tex')|reference|absolutify(url)|str|safe }}
|
||||
{{ description|markdown|reference|absolutify(url)|str|safe }}
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="{{ static('mathjax_config.js') }}"></script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue