From 5ee74f4956712896ab79496592023c77b819b2a5 Mon Sep 17 00:00:00 2001 From: debugbb Date: Mon, 30 Sep 2024 13:43:38 +0800 Subject: [PATCH] Adjust the position of the note property in the default highlight template to solve the problem that the note is not displayed after synchronization. --- src/settings/template.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/settings/template.ts b/src/settings/template.ts index d1a72a5..616c61e 100644 --- a/src/settings/template.ts +++ b/src/settings/template.ts @@ -73,9 +73,9 @@ date-saved:: {{{dateSaved}}} date-published:: {{{datePublished}}} {{/datePublished}}` -export const defaultHighlightTemplate = `> {{{text}}} [⤴️]({{{highlightUrl}}}) {{#labels}} #[[{{{name}}}]] {{/labels}} +export const defaultHighlightTemplate = `{{#note.length}}note:: {{{note}}}{{/note.length}} -{{#note.length}}note:: {{{note}}}{{/note.length}}` +> {{{text}}} [⤴️]({{{highlightUrl}}}) {{#labels}} #[[{{{name}}}]] {{/labels}}` const getItemState = (item: Item): string => { if (item.isArchived) {