We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d79afb commit 2f3f4faCopy full SHA for 2f3f4fa
src/transformers/get-page-properties.js
@@ -1,9 +1,15 @@
1
+const { blockToString } = require("../block-to-string")
2
+
3
exports.getNotionPageProperties = (page) =>
4
Object.keys(page.properties).reduce((acc, key) => {
5
if (page.properties[key].type == "title") {
6
return acc
7
}
8
9
+ if (page.properties[key].type == "rich_text") {
10
+ page.properties[key].rich_text = blockToString(page.properties[key].rich_text)
11
+ }
12
13
return {
14
...acc,
15
[key]: {
0 commit comments