We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c5bf36 commit d6099e7Copy full SHA for d6099e7
1 file changed
src/commands/default-commands/save-image-command.tsx
@@ -78,8 +78,7 @@ export const saveImageCommand: Command = {
78
end: initialState.selection.start + placeHolder.length
79
});
80
81
- const realImageMarkdown = `${breaksBefore}`;
82
-
+ const realImageMarkdown = imageUrl ? `${breaksBefore}` : "";
83
const selectionDelta = realImageMarkdown.length - placeHolder.length;
84
85
textApi.replaceSelection(realImageMarkdown);
0 commit comments