list_str  attribute     

liststr = liststr.replace(/ (\n)? // leading line = $1 (^[ \t]) // leading whitespace = $2 ([+-]|\d+[.]) [ \t]+ // list marker = $3 ([^\r]+? // list item text = $4 (\n{1,2})) (?= \n* (~0 | \2 ([*+-]|\d+[.]) [ \t]+)) /gm, function(){...});

© Jupiter IT - JavaScriptMVC Training and Support