2
0
mirror of https://github.com/Ionaru/easy-markdown-editor synced 2025-07-02 23:54:28 -06:00

list toggle fix

This commit is contained in:
Lukasz Ostrowski 2016-07-25 10:16:14 +02:00
parent c849cc95b2
commit 61991d1e7d

View File

@ -926,7 +926,7 @@ function _toggleLine(cm, name) {
} }
text = arr[1] + char + arr[3] +text.replace(whitespacesRegexp, '').replace(repl[name], "$1"); text = arr[1] + char + arr[3] +text.replace(whitespacesRegexp, '').replace(repl[name], "$1");
} else { } else {
text = map[name] + ' ' + text text = map[name] + ' ' + text;
} }
} }
cm.replaceRange(text, { cm.replaceRange(text, {