From 868c9f9d72658b3f5cb1272743b1d3e43061e7c4 Mon Sep 17 00:00:00 2001 From: obgnail Date: Mon, 14 Aug 2023 22:12:34 +0800 Subject: [PATCH] hotfix: mindmap: use wrong cleanTitle function --- plugin/mindmap.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/mindmap.js b/plugin/mindmap.js index 1aee6857..13bf46df 100644 --- a/plugin/mindmap.js +++ b/plugin/mindmap.js @@ -12,7 +12,7 @@ return filename } - const cleanMindMapTitle = title => title.replace(/[(、:,()。「」?!_)]/g, ""); + const cleanMindMapTitle = title => title.replace(/[(-)]/g, ""); const cleanGraphTitle = title => `"${title.replace(/"/g, "")}"`; const wrapMermaid = content => `\`\`\`mermaid\n${content}\`\`\``;