Enable markdown in comments

This commit is contained in:
rubenwardy 2018-07-28 14:07:29 +01:00
parent 794bc8a018
commit cbc98ef624
No known key found for this signature in database
GPG Key ID: A1E29D52FF81513C
1 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@
<div class="clearboth"></div>
</div>
<div class="msg">
{{ r.comment }}
{{ r.comment | markdown }}
</div>
</li>
{% endfor %}
@ -19,7 +19,7 @@
{% if current_user.is_authenticated %}
<form method="post" action="{{ url_for('thread_page', id=thread.id)}}" class="comment_form">
<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" />
</form>
{% endif %}