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