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 d2b1746 commit bf19d2dCopy full SHA for bf19d2d
src/commands/image.tsx
@@ -11,10 +11,10 @@ export const image: ICommand = {
11
</svg>
12
),
13
execute: (editor, selection, position) => {
14
- const value = selection ? `${selection} ` : '\n';
+ const value = selection ? `${selection} ![]()` : '![]()\n';
15
editor.replaceSelection(value);
16
// position.ch = !!selection ? position.ch : position.ch + 1;
17
editor.setCursor(position.line, position.ch);
18
editor.focus();
19
},
20
-};
+};
0 commit comments