Skip to content

Commit

Permalink
fix: filter :LOGBOOK: out
Browse files Browse the repository at this point in the history
  • Loading branch information
EINDEX committed Jan 7, 2024
1 parent 9b70e68 commit 765f82a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/pages/background/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export function blockRending({
preferredDateFormat: string;
time: Date;
}): string {
console.log(preferredDateFormat);
const render = engine
.parseAndRenderSync(clipNoteTemplate, {
date: format(time, preferredDateFormat),
Expand Down
1 change: 1 addition & 0 deletions src/pages/logseq/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ export default class LogseqClient {
.replaceAll(/^deadline: <.*?>$/gm, '') // clean deadline
.replaceAll(/^scheduled: <.*?>$/gm, '') // clean schedule
.replaceAll(/^:logbook:[\S\s]*?:end:$/gm, '') // clean logbook
.replaceAll(/^:LOGBOOK:[\S\s]*?:END:$/gm, '') // clean logbook
.replaceAll(/\$pfts_2lqh>\$(.*?)\$<pfts_2lqh\$/gm, '<em>$1</em>') // clean highlight
.replaceAll(/^\s*?-\s*?$/gm, '')
.trim();
Expand Down

0 comments on commit 765f82a

Please sign in to comment.