From 87237f5c28f177830808aeb4710f72d31f14c045 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Wed, 11 Apr 2018 13:25:12 +0200 Subject: feat(render): Implement Markdown thread rendering & Gravatar Implements a new thread rendering pipeline which all posts and the main thread body are first converted to a `RenderablePost` structure. During the conversion to this structure, the post body is rendered as Markdown and the author's email address is converted into the format required by Gravatar. --- templates/thread.html | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) (limited to 'templates/thread.html') diff --git a/templates/thread.html b/templates/thread.html index ee5a3a4271fb..bbe288e92f13 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -5,7 +5,7 @@ - Converse: {{ thread.title }} + Converse: {{ title }}
@@ -26,30 +26,10 @@
-

{{ thread.title }}

+

{{ title }}

-
-
-
-
-
- -
-
-
-
- {{ thread.author_name }} -
-
-
-
- {{ thread.body }} -
- {{ thread.posted }} -
-
{% for post in posts -%}
@@ -57,7 +37,7 @@
- +
@@ -69,15 +49,16 @@
{{ post.body }}
- {{ post.posted }} + {{ post.posted }}
{%- endfor %} +
- +
-- cgit 1.4.1