From 1462810963f54f59b5eacd8657057583c87dc0e4 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 16 Apr 2018 03:15:50 +0200 Subject: fix(render): Enable GFM's tagfilter extension --- src/render.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/render.rs') diff --git a/src/render.rs b/src/render.rs index e02ac31ea98c..95edb5749c68 100644 --- a/src/render.rs +++ b/src/render.rs @@ -118,14 +118,13 @@ fn prepare_thread(comrak: &ComrakOptions, page: ThreadPage) -> RenderableThreadP let user = page.current_user; let posts = page.posts.into_iter().map(|post| { - let escaped_body = escape_html(&post.body); let editable = user.clone() .map(|c| post.author_email.eq(&c)) .unwrap_or_else(|| false); RenderablePost { id: post.id, - body: markdown_to_html(&escaped_body, comrak), + body: markdown_to_html(&post.body, comrak), posted: post.posted.into(), author_name: post.author_name.clone(), author_gravatar: md5_hex(post.author_email.as_bytes()), -- cgit 1.4.1