From 9771f84e4b7ed5aa3b2dd502574cec4db18153d0 Mon Sep 17 00:00:00 2001 From: obgnail Date: Fri, 15 Sep 2023 01:23:07 +0800 Subject: [PATCH] update kanban --- plugin/custom/plugins/kanban.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/custom/plugins/kanban.js b/plugin/custom/plugins/kanban.js index 0c3166e9..4eb882fe 100644 --- a/plugin/custom/plugins/kanban.js +++ b/plugin/custom/plugins/kanban.js @@ -110,7 +110,7 @@ class kanbanPlugin extends BaseCustomPlugin { } } - // TASK_COLOR or KANBAN_COLOR + // type: TASK_COLOR/KANBAN_COLOR getColor = (type, idx) => { idx %= this.config[type].length; return this.config[type][idx] @@ -131,7 +131,7 @@ class kanbanPlugin extends BaseCustomPlugin { const title = match.groups.title; if (title) { const last = kanban.list[kanban.list.length - 1]; - const desc = (match.groups.desc || "").replace(/\\n/g, "\n"); + const desc = (match.groups.desc || "").replace(/\\n/g, "\n").replace(/\\r/g, "\r").replace(/\\t/g, "\t"); last && last.item.push({title, desc}); } }