Permalink
Browse files

New list elements now add the highlighted default text on smart indent.

This makes the new list item look normal in the preview window.
  • Loading branch information...
1 parent 39239c2 commit 869edbcf9e86300c3408855438005d8cce555c73 @derobins derobins committed Feb 25, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 wmd.js
View
4 wmd.js
@@ -1992,12 +1992,12 @@ Attacklab.wmdBase = function(){
if(/(\n|^)[ ]{0,3}([*+-])[ \t]+.*\n$/.test(chunk.before)){
if(command.doList){
- command.doList(chunk, postProcessing, false, useDefaultText);
+ command.doList(chunk, postProcessing, false, true);
}
}
if(/(\n|^)[ ]{0,3}(\d+[.])[ \t]+.*\n$/.test(chunk.before)){
if(command.doList){
- command.doList(chunk, postProcessing, true, useDefaultText);
+ command.doList(chunk, postProcessing, true, true);
}
}
if(/(\n|^)[ ]{0,3}>[ \t]+.*\n$/.test(chunk.before)){

0 comments on commit 869edbc

Please sign in to comment.