From f3bed03d8f91046afca6052c5471557bf4c8cfa2 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Thu, 27 Oct 2022 14:55:37 -0500 Subject: [PATCH] Fix markdown bug --- judge/feed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/judge/feed.py b/judge/feed.py index d553d1b..c7fcb07 100644 --- a/judge/feed.py +++ b/judge/feed.py @@ -71,7 +71,7 @@ class CommentFeed(Feed): key = "comment_feed:%d" % comment.id desc = cache.get(key) if desc is None: - desc = str(markdown(comment.body, "comment")) + desc = str(markdown(comment.body)) desc = escape_xml_illegal_chars(desc) cache.set(key, desc, 86400) return desc @@ -104,7 +104,7 @@ class BlogFeed(Feed): key = "blog_feed:%d" % post.id summary = cache.get(key) if summary is None: - summary = str(markdown(post.summary or post.content, "blog")) + summary = str(markdown(post.summary or post.content)) summary = escape_xml_illegal_chars(summary) cache.set(key, summary, 86400) return summary