From f31e4d650db2d8bb0065895d17b343fed317e87c Mon Sep 17 00:00:00 2001 From: Matt Baer Date: Tue, 15 Dec 2020 09:33:14 -0500 Subject: [PATCH] Use HTMLContent field in RSS feed This re-uses the HTMLContent feed for the full HTML content in the RSS feed, instead of again generating HTML from Markdown. This keeps things more consistent throughout the application and reduces work when rendering the feed. --- feed.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/feed.go b/feed.go index 4e1f612..3062e26 100644 --- a/feed.go +++ b/feed.go @@ -1,5 +1,5 @@ /* - * Copyright © 2018-2019 A Bunch Tell LLC. + * Copyright © 2018-2020 A Bunch Tell LLC. * * This file is part of WriteFreely. * @@ -104,7 +104,7 @@ func ViewFeed(app *App, w http.ResponseWriter, req *http.Request) error { Title: title, Link: &Link{Href: permalink}, Description: "", - Content: applyMarkdown([]byte(p.Content), "", app.cfg), + Content: string(p.HTMLContent), Author: &Author{author, ""}, Created: p.Created, Updated: p.Updated,