From acb9dac1b995417f5d166dc19cd2b47601c12f35 Mon Sep 17 00:00:00 2001 From: Cheng-Han, Wu Date: Mon, 8 Feb 2016 22:49:35 -0600 Subject: Updated to make continue list in todo list default as unchecked --- public/vendor/codemirror/addon/edit/continuelist.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'public/vendor') diff --git a/public/vendor/codemirror/addon/edit/continuelist.js b/public/vendor/codemirror/addon/edit/continuelist.js index e70e0ec8..18db07fc 100644 --- a/public/vendor/codemirror/addon/edit/continuelist.js +++ b/public/vendor/codemirror/addon/edit/continuelist.js @@ -41,6 +41,9 @@ var bullet = unorderedListRE.test(match[2]) || match[2].indexOf(">") >= 0 ? match[2] : (parseInt(match[3], 10) + 1) + match[4]; + + // make todo list default unchecked + after = after.replace('[x]', '[ ]'); replacements[i] = "\n" + indent + bullet + after; } -- cgit v1.2.3