mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-07-05 00:54:27 -06:00
list toggle fix
This commit is contained in:
parent
c849cc95b2
commit
61991d1e7d
@ -924,9 +924,9 @@ function _toggleLine(cm, name) {
|
||||
if (arr[2] && arr[2] == map[name]) {
|
||||
char = '';
|
||||
}
|
||||
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 {
|
||||
text = map[name] + ' ' + text
|
||||
text = map[name] + ' ' + text;
|
||||
}
|
||||
}
|
||||
cm.replaceRange(text, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user