Skip to content

Commit df0b073

Browse files
committed
Bump to 11.0.4
1 parent a90fd2e commit df0b073

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-mde",
3-
"version": "11.0.1",
3+
"version": "11.0.4",
44
"description": "React Markdown Editor",
55
"main": "./lib/js/index.js",
66
"types": "./lib/definitions/index.d.ts",

src/commands/default-commands/save-image-command.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ export const saveImageCommand: Command = {
7979
end: initialState.selection.start + placeHolder.length
8080
});
8181

82-
const realImageMarkdown = imageUrl ? `${breaksBefore}![image](${imageUrl})` : "";
82+
const realImageMarkdown = imageUrl
83+
? `${breaksBefore}![image](${imageUrl})`
84+
: "";
8385
const selectionDelta = realImageMarkdown.length - placeHolder.length;
8486

8587
textApi.replaceSelection(realImageMarkdown);

0 commit comments

Comments
 (0)