mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-14 15:28:08 +02:00
feat(content-blog): add full blog post html into RSS/Atom feeds (#4330)
Co-authored-by: slorber <lorber.sebastien@gmail.com>
This commit is contained in:
parent
198590446a
commit
6ed698976d
15 changed files with 377 additions and 18 deletions
|
@ -26,6 +26,7 @@ import {
|
|||
getEditUrl,
|
||||
getFolderContainingFile,
|
||||
posixPath,
|
||||
mdxToHtml,
|
||||
replaceMarkdownLinks,
|
||||
Globby,
|
||||
normalizeFrontMatterTags,
|
||||
|
@ -155,6 +156,7 @@ export async function generateBlogFeed(
|
|||
link: normalizeUrl([siteUrl, permalink]),
|
||||
date,
|
||||
description,
|
||||
content: mdxToHtml(post.content),
|
||||
author: authors.map(toFeedAuthor),
|
||||
});
|
||||
});
|
||||
|
@ -292,6 +294,7 @@ async function processBlogSourceFile(
|
|||
truncated: truncateMarker?.test(content) || false,
|
||||
authors,
|
||||
},
|
||||
content,
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue