We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 38284a1 + 86c282a commit 8021475Copy full SHA for 8021475
1 file changed
packages/super-editor/src/components/toolbar/ai-helpers.js
@@ -312,6 +312,24 @@ const formatRegistry = {
312
text: content,
313
}),
314
},
315
+ {
316
+ name: 'italic',
317
+ pattern: /\*(.*?)\*/g,
318
+ transform: (_match, content, _editor) => ({
319
+ type: 'text',
320
+ marks: [{ type: 'italic' }],
321
+ text: content,
322
+ }),
323
+ },
324
325
+ name: 'underline',
326
+ pattern: /<(?:u|ins)>(.*?)<\/(?:u|ins)>/g,
327
328
329
+ marks: [{ type: 'underline' }],
330
331
332
333
],
334
};
335
0 commit comments