Skip to content

Commit 2dab88c

Browse files
committed
Rollback packages
1 parent 35b83dc commit 2dab88c

File tree

2 files changed

+2022
-1963
lines changed

2 files changed

+2022
-1963
lines changed

common/src/util/parse.ts

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,13 @@ export function parseMentions(data: JSONContent): string[] {
4747
}
4848

4949
export const extensions = [
50-
StarterKit.configure({}), // ✅ instantiate
51-
Link.configure({ openOnClick: true }),
50+
StarterKit,
51+
Link,
5252
Image.extend({ renderText: () => '[image]' }),
53-
Mention.configure({}),
53+
Mention, // user @mention
5454
Iframe.extend({
55-
renderText: ({ node }) => {
56-
return `[embed]${node.attrs.src ? `(${node.attrs.src})` : ''}`
57-
},
55+
renderText: ({ node }) =>
56+
'[embed]' + node.attrs.src ? `(${node.attrs.src})` : '',
5857
}),
5958
]
6059

0 commit comments

Comments
 (0)