|
|
@ -23,8 +23,8 @@ define([
|
|
|
|
var mediaMap = {};
|
|
|
|
var mediaMap = {};
|
|
|
|
|
|
|
|
|
|
|
|
// Tasks list
|
|
|
|
// Tasks list
|
|
|
|
var checkedTaskItemPtn = /^\s*\[x\]\s*/;
|
|
|
|
var checkedTaskItemPtn = /^\s*(<p>)?\[[xX]\](<\/p>)?\s*/;
|
|
|
|
var uncheckedTaskItemPtn = /^\s*\[ \]\s*/;
|
|
|
|
var uncheckedTaskItemPtn = /^\s*(<p>)?\[ ?\](<\/p>)?\s*/;
|
|
|
|
renderer.listitem = function (text) {
|
|
|
|
renderer.listitem = function (text) {
|
|
|
|
var isCheckedTaskItem = checkedTaskItemPtn.test(text);
|
|
|
|
var isCheckedTaskItem = checkedTaskItemPtn.test(text);
|
|
|
|
var isUncheckedTaskItem = uncheckedTaskItemPtn.test(text);
|
|
|
|
var isUncheckedTaskItem = uncheckedTaskItemPtn.test(text);
|
|
|
|