From 1cc20cad5b56ee1a7eafa247fbc454f30f008d9b Mon Sep 17 00:00:00 2001 From: sharath Date: Sat, 27 Jan 2024 12:29:03 +0100 Subject: [PATCH 1/2] changed insertBlocks to insert-blocks --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index e79b923..1d3fd0b 100644 --- a/index.ts +++ b/index.ts @@ -149,7 +149,7 @@ const main = async () => { getPages(); dateFormat = (await logseq.App.getUserConfigs()).preferredDateFormat; logseq.DB.onChanged((e) => { - if (e.txMeta?.outlinerOp == "insertBlocks") { + if (e.txMeta?.outlinerOp == "insert-blocks") { if (logseq.settings?.enableAutoParse) { blockArray?.forEach(parseBlockForLink); } From 08c16d77bcf9c3c293d188bd39e558dddda88dbb Mon Sep 17 00:00:00 2001 From: Aryan Sawhney <80150109+sawhney17@users.noreply.github.com> Date: Thu, 8 Feb 2024 20:42:25 +0400 Subject: [PATCH 2/2] Update index.ts --- index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 1d3fd0b..e6ce4e3 100644 --- a/index.ts +++ b/index.ts @@ -149,7 +149,7 @@ const main = async () => { getPages(); dateFormat = (await logseq.App.getUserConfigs()).preferredDateFormat; logseq.DB.onChanged((e) => { - if (e.txMeta?.outlinerOp == "insert-blocks") { + if (e.txMeta?.outlinerOp == "insert-blocks" || e.txMeta?.outlinerOp == "insertBlocks") { if (logseq.settings?.enableAutoParse) { blockArray?.forEach(parseBlockForLink); }