From 2ed7e46063317e394088a95996694481b3de2d21 Mon Sep 17 00:00:00 2001 From: hkgnp Date: Sun, 13 Feb 2022 03:17:50 +0800 Subject: [PATCH] minor refactor --- package.json | 2 +- src/convert.ts | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/package.json b/package.json index 30c9399..69ffcb6 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "icon": "./icon.svg" }, "name": "logseq-mermaid-plugin", - "version": "1.0.0", + "version": "1.0.1", "description": "", "main": "dist/index.html", "targets": { diff --git a/src/convert.ts b/src/convert.ts index 5094773..d9b6582 100644 --- a/src/convert.ts +++ b/src/convert.ts @@ -1,8 +1,6 @@ export const convert = (data: string) => { const matchData = data.match(/```mermaid(.|\n)*?```/gm); - console.log(matchData[0]); - let toDecode = matchData[0]; toDecode = toDecode.replace('```mermaid', '').replace('```', ''); toDecode = toDecode.replace('\n', ' ');