From 5555cdfd1e128c3a98b848ff40b02c249781a0b8 Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Wed, 1 Nov 2017 09:32:42 +1100 Subject: [PATCH] Render the entry content to HTML when syndicating it as Atom or RSS --- entries/feeds.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/entries/feeds.py b/entries/feeds.py index 00b9cb4..d7ef88c 100644 --- a/entries/feeds.py +++ b/entries/feeds.py @@ -3,6 +3,7 @@ from django.contrib.syndication.views import Feed from django.urls import reverse from django.utils.feedgenerator import Atom1Feed from urllib.parse import urljoin +from lemoncurry.templatetags.markdown import markdown from .models import Entry @@ -11,7 +12,7 @@ class EntriesFeed(Feed): return entry.title def item_description(self, entry): - return entry.content + return markdown(entry.content) def item_author_name(self, entry): return entry.author.name