Update lib/ace/mode/markdown.js
improve auto indent: * support TAB character * support order list
This commit is contained in:
parent
760f19dfc9
commit
d90a96b0c4
1 changed files with 1 additions and 1 deletions
|
|
@ -65,7 +65,7 @@ oop.inherits(Mode, TextMode);
|
|||
(function() {
|
||||
this.getNextLineIndent = function(state, line, tab) {
|
||||
if (state == "listblock") {
|
||||
var match = /^((?:.+)?)([-+*][ ]+)/.exec(line);
|
||||
var match = /^((?:.+)?)(([-+*]|\d+\.)\s+)/.exec(line);
|
||||
if (match) {
|
||||
return new Array(match[1].length + 1).join(" ") + match[2];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue