diff --git a/mode/markdown/markdown.js b/mode/markdown/markdown.js index 127846ba4f0efa7eb0de261e7b86dba50efac307..137db5f38dbf25d3b36f20d33f098fcd3edf7c9a 100644 --- a/mode/markdown/markdown.js +++ b/mode/markdown/markdown.js @@ -178,7 +178,7 @@ CodeMirror.defineMode("markdown", function(cmCfg, modeCfg) { stream.match(olRE, true); listType = 'ol'; } - state.indentation += 4; + state.indentation = stream.column() + stream.current().length; state.list = true; state.listDepth++; if (modeCfg.taskLists && stream.match(taskListRE, false)) {