Import using drag&drop over the textarea (Fixes #38). Unescape ':' character in anchors (Fixes #29).
This commit is contained in:
parent
0e9b39866a
commit
a61f473ef1
@ -77,7 +77,7 @@ define([
|
|||||||
converter = new toMarkdown.converter();
|
converter = new toMarkdown.converter();
|
||||||
|
|
||||||
$("#input-file-import-harddrive-markdown").change(handleMarkdownImport);
|
$("#input-file-import-harddrive-markdown").change(handleMarkdownImport);
|
||||||
$('#dropzone-import-harddrive-markdown').each(function() {
|
$('#dropzone-import-harddrive-markdown, #wmd-input').each(function() {
|
||||||
this.addEventListener('dragover', handleDragOver, false);
|
this.addEventListener('dragover', handleDragOver, false);
|
||||||
this.addEventListener('drop', handleMarkdownImport, false);
|
this.addEventListener('drop', handleMarkdownImport, false);
|
||||||
});
|
});
|
||||||
|
@ -1378,7 +1378,7 @@ else
|
|||||||
if (match == "~D") // escape for dollar
|
if (match == "~D") // escape for dollar
|
||||||
return "%24";
|
return "%24";
|
||||||
if (match == ":") {
|
if (match == ":") {
|
||||||
if (offset == len - 1 || /[0-9\/]/.test(url.charAt(offset + 1)))
|
//if (offset == len - 1 || /[0-9\/]/.test(url.charAt(offset + 1)))
|
||||||
return ":"
|
return ":"
|
||||||
}
|
}
|
||||||
return "%" + match.charCodeAt(0).toString(16);
|
return "%" + match.charCodeAt(0).toString(16);
|
||||||
|
Loading…
Reference in New Issue
Block a user