diff --git a/lib/rss.js b/lib/rss.js
index 9c3f3fc7..d6cbaf4a 100644
--- a/lib/rss.js
+++ b/lib/rss.js
@@ -1,7 +1,31 @@
import { Feed } from 'feed'
import BLOG from '@/blog.config'
+import ReactDOMServer from 'react-dom/server'
+import { NotionRenderer, Equation, Code, Collection, CollectionRow } from 'react-notion-x'
+import { getPostBlocks } from './notion'
-export function generateRss (posts) {
+const mapPageUrl = id => 'https://www.notion.so/' + id.replace(/-/g, '')
+
+const createFeedContent = async post => {
+ const blockMap = await getPostBlocks(post.id, 'rss-content')
+ if (blockMap) {
+ const content = ReactDOMServer.renderToString(