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 35b83dc commit 2dab88cCopy full SHA for 2dab88c
common/src/util/parse.ts
@@ -47,14 +47,13 @@ export function parseMentions(data: JSONContent): string[] {
47
}
48
49
export const extensions = [
50
- StarterKit.configure({}), // ✅ instantiate
51
- Link.configure({ openOnClick: true }),
+ StarterKit,
+ Link,
52
Image.extend({ renderText: () => '[image]' }),
53
- Mention.configure({}),
+ Mention, // user @mention
54
Iframe.extend({
55
- renderText: ({ node }) => {
56
- return `[embed]${node.attrs.src ? `(${node.attrs.src})` : ''}`
57
- },
+ renderText: ({ node }) =>
+ '[embed]' + node.attrs.src ? `(${node.attrs.src})` : '',
58
}),
59
]
60
0 commit comments