mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-10 15:47:23 +02:00
* Refactor markdown rendering into separate module * Render blog feed description in html
This commit is contained in:
parent
546cc8c7c5
commit
2d7274f6fe
3 changed files with 92 additions and 69 deletions
|
@ -20,6 +20,8 @@ const blogRootURL = siteConfig.url + siteConfig.baseUrl + 'blog';
|
|||
const siteImageURL =
|
||||
siteConfig.url + siteConfig.baseUrl + siteConfig.headerIcon;
|
||||
|
||||
const renderMarkdown = require('../core/renderMarkdown.js');
|
||||
|
||||
/****************************************************************************/
|
||||
|
||||
let readMetadata;
|
||||
|
@ -64,6 +66,8 @@ module.exports = function(type) {
|
|||
}
|
||||
}
|
||||
|
||||
content = renderMarkdown(content);
|
||||
|
||||
feed.addItem({
|
||||
title: post.title,
|
||||
link: url,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue