diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 252ffe2c5..f79d8cbdc 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -23,8 +23,8 @@ define([ var mediaMap = {}; // Tasks list - var checkedTaskItemPtn = /^\s*\[x\]\s*/; - var uncheckedTaskItemPtn = /^\s*\[ \]\s*/; + var checkedTaskItemPtn = /^\s*(

)?\[[xX]\](<\/p>)?\s*/; + var uncheckedTaskItemPtn = /^\s*(

)?\[ ?\](<\/p>)?\s*/; renderer.listitem = function (text) { var isCheckedTaskItem = checkedTaskItemPtn.test(text); var isUncheckedTaskItem = uncheckedTaskItemPtn.test(text);