Code Duplication    Length = 13-13 lines in 2 locations

Resources/Public/JavaScript/editormd/editormd.js 2 locations

@@ 3277-3289 (lines=13) @@
3274
        "Shift-Ctrl-Alt-U" : "ucfirst",
3275
        "Shift-Alt-L"      : "lowercase",
3276
        
3277
        "Shift-Ctrl-I"     : function() {
3278
            var cm        = this.cm;
3279
            var cursor    = cm.getCursor();
3280
            var selection = cm.getSelection();
3281
            
3282
            var title = (selection === "") ? "" : " \""+selection+"\"";
3283
3284
            cm.replaceSelection("![" + selection + "]("+title+")");
3285
3286
            if (selection === "") {
3287
                cm.setCursor(cursor.line, cursor.ch + 4);
3288
            }
3289
        },
3290
        
3291
        "Shift-Ctrl-Alt-I" : "image",
3292
        "Shift-Ctrl-L"     : "link",
@@ 3218-3230 (lines=13) @@
3215
        "Ctrl-I"       : "italic",
3216
        "Ctrl-K"       : "code",
3217
        
3218
        "Ctrl-L"        : function() {
3219
            var cm        = this.cm;
3220
            var cursor    = cm.getCursor();
3221
            var selection = cm.getSelection();
3222
            
3223
            var title = (selection === "") ? "" : " \""+selection+"\"";
3224
3225
            cm.replaceSelection("[" + selection + "]("+title+")");
3226
3227
            if (selection === "") {
3228
                cm.setCursor(cursor.line, cursor.ch + 1);
3229
            }
3230
        },
3231
        "Ctrl-U"         : "list-ul",
3232
        
3233
        "Shift-Ctrl-A"   : function() {