Skip to content

Commit

Permalink
Fix issue #105 with RSS from Medium site
Browse files Browse the repository at this point in the history
  • Loading branch information
ndaidong committed Aug 22, 2023
1 parent 6fc2606 commit 3e1d612
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/parseRssFeed.js
Expand Up @@ -27,15 +27,17 @@ const transform = (item, options) => {
link = '',
pubDate = '',
description = '',
'content:encoded': content = '',
} = item

const published = useISODateFormat ? toISODateString(pubDate) : pubDate
const htmlContent = getText(content || description)
const entry = {
id: getEntryId(guid, link, pubDate),
title: getText(title),
link: getPureUrl(link, guid, baseUrl),
published,
description: buildDescription(description, descriptionMaxLen),
description: buildDescription(htmlContent || description, descriptionMaxLen),
}

const extraFields = getExtraEntryFields(item)
Expand Down

0 comments on commit 3e1d612

Please sign in to comment.