Update lib/ace/mode/markdown.js

improve auto indent:

* support TAB character
* support order list
This commit is contained in:
quexer 2012-09-06 18:15:17 +08:00
commit d90a96b0c4

View file

@ -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 {