From 5c370f89c1a65abae807e016bc52a8b079ae7ca8 Mon Sep 17 00:00:00 2001 From: EINDEX Date: Sun, 25 Feb 2024 09:53:17 +0800 Subject: [PATCH] feat: ignore video render --- src/pages/logseq/tool.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pages/logseq/tool.ts b/src/pages/logseq/tool.ts index 76a4be6..556f4ed 100644 --- a/src/pages/logseq/tool.ts +++ b/src/pages/logseq/tool.ts @@ -24,6 +24,7 @@ export const cleanBlock = (block: LogseqBlockType): string => { .replaceAll(/^:logbook:[\S\s]*?:end:$/gim, '') // clean logbook .replaceAll(/^:LOGBOOK:[\S\s]*?:END:$/gim, '') // clean logbook .replaceAll(/\$pfts_2lqh>\$(.*?)\$$1') // clean highlight + .replaceAll(/{{video .*?}}/gm, '') .replaceAll(/^\s*?-\s*?$/gim, '') .trim(); };