Skip to content

Commit

Permalink
pagedown: handle tab-indented lines correctly when de-denting via Ctrl-K
Browse files Browse the repository at this point in the history
  • Loading branch information
balpha committed Dec 15, 2012
1 parent 67145a7 commit 933b088
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Markdown.Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2014,7 +2014,7 @@
chunk.before += " ";
}
else {
chunk.selection = chunk.selection.replace(/^[ ]{4}/gm, "");
chunk.selection = chunk.selection.replace(/^(?:[ ]{4}|[ ]{0,3}\t)/gm, "");
}
}
}
Expand Down

0 comments on commit 933b088

Please sign in to comment.