diff --git a/main.js b/main.js index 998675c..beef3cd 100644 --- a/main.js +++ b/main.js @@ -2080,6 +2080,21 @@ function rawline2html(line, index, options) } } } + + // todo.txt + if (currentnote.title.includes("todo") || gettags(currentnote).includes("todo")) + { + if (line.startsWith("x ")) + { + line = "" + line + ""; + } + else + { + line = line.replace(/(\(\w\))/g, "$1"); + line = line.replace(/(@\w*)/g, "$1"); + line = line.replace(/(\+\w*)/g, "$1"); + } + } return line; }