diff --git a/src/parser.js b/src/parser.js index e1dafa9..0a82f3e 100644 --- a/src/parser.js +++ b/src/parser.js @@ -110,6 +110,11 @@ function getPostCoverImageId(postData) { return id; } +function getPostExcerpt(post) { + const excerpt = post.encoded[1].replace(/(\r\n|\n|\r)/gm, " "); + return excerpt; +} + function collectAttachedImages(channelData) { const images = getItemsOfType(channelData, 'attachment') // filter to certain image file types