Skip to content

Commit 9911980

Browse files
author
Sergei Orlov
committed
🐛 Use plain text for user mentions in titles
1 parent b339d2e commit 9911980

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/transformers/get-page-title.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ exports.getNotionPageTitle = (page) => {
1111

1212
if (chunk.type == "mention") {
1313
if (chunk.mention.type == "user") {
14-
return acc.concat(chunk.mention.user.name)
14+
return acc.concat(chunk.plain_text)
1515
}
1616

1717
if (chunk.mention.type == "date") {

0 commit comments

Comments
 (0)