[issue #64] Fixed bug with links in markdown.
This commit is contained in:
parent
a89db6f3a5
commit
7974893e01
|
@ -89,10 +89,12 @@ var MarkDown = {
|
|||
}
|
||||
],
|
||||
OK: function( res ) {
|
||||
var rep = '';
|
||||
if ( res['text'] && res['href'] ) {
|
||||
rep = '[' + res['text'] + ']('
|
||||
+ res['href'] + ')';
|
||||
var rep = '';
|
||||
if ( res['text'] && res['href'] ) {
|
||||
rep = '[[' + res['text'] + '|'
|
||||
+ res['href'] + ']]';
|
||||
} else if ( res['href'] ) {
|
||||
rep = '[[' + res['href'] + ']]';
|
||||
}
|
||||
$.GollumEditor.replaceSelection( rep );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue