diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-07-28 14:07:29 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-07-28 14:07:29 +0100 |
commit | cbc98ef624eaf9ee3522ae13298a0b6fbf6ec707 (patch) | |
tree | 53438eeaaa78a986afc0875aec6503cf20dcffc3 | |
parent | 794bc8a018421e6d6ef8802f3c35fba9df7b7d17 (diff) | |
download | cheatdb-cbc98ef624eaf9ee3522ae13298a0b6fbf6ec707.tar.xz |
Enable markdown in comments
-rw-r--r-- | app/templates/macros/threads.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/templates/macros/threads.html b/app/templates/macros/threads.html index 6552f2a..023059a 100644 --- a/app/templates/macros/threads.html +++ b/app/templates/macros/threads.html @@ -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 %} |