Enable markdown in comments
This commit is contained in:
parent
794bc8a018
commit
cbc98ef624
|
@ -10,7 +10,7 @@
|
||||||
<div class="clearboth"></div>
|
<div class="clearboth"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="msg">
|
<div class="msg">
|
||||||
{{ r.comment }}
|
{{ r.comment | markdown }}
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
{% if current_user.is_authenticated %}
|
{% if current_user.is_authenticated %}
|
||||||
<form method="post" action="{{ url_for('thread_page', id=thread.id)}}" class="comment_form">
|
<form method="post" action="{{ url_for('thread_page', id=thread.id)}}" class="comment_form">
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
<textarea required maxlength=500 name="comment"></textarea><br />
|
<textarea required maxlength=500 name="comment" placeholder="Markdown supported"></textarea><br />
|
||||||
<input type="submit" value="Comment" />
|
<input type="submit" value="Comment" />
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in New Issue