resolve: #282 QuickNoteV3 -> QuickNoteV4

This commit is contained in:
xiangyu 2022-12-15 22:46:15 +08:00
parent 8b847fb438
commit 1feffe789b
2 changed files with 4 additions and 4 deletions

View File

@ -149,7 +149,7 @@ class ReaderViews extends AddonBase {
const renderredTemplate =
await this._Addon.TemplateController.renderTemplateAsync(
"[QuickNoteV3]",
"[QuickNoteV4]",
"annotationItem, topItem, noteItem",
[annotationItem, annotationItem.parentItem.parentItem, note]
);

View File

@ -15,7 +15,7 @@ class TemplateController extends AddonBase {
"[QuickInsert]",
"[QuickBackLink]",
"[QuickImport]",
"[QuickNoteV3]",
"[QuickNoteV4]",
"[ExportMDFileName]",
"[ExportMDFileHeader]",
];
@ -36,8 +36,8 @@ class TemplateController extends AddonBase {
disabled: false,
},
{
name: "[QuickNoteV3]",
text: '${await new Promise(async (r) => {\nlet res = ""\nif(annotationItem.annotationComment){\nres += Zotero.Knowledge4Zotero.NoteParse.parseMDToHTML(annotationItem.annotationComment);\n}\nres += await Zotero.Knowledge4Zotero.NoteParse.parseAnnotationHTML(noteItem, [annotationItem], true);\nr(res);})}',
name: "[QuickNoteV4]",
text: '${await new Promise(async (r) => {\nlet res = ""\nif(annotationItem.annotationComment){\nres += await Zotero.Knowledge4Zotero.NoteParse.parseMDToHTML(annotationItem.annotationComment);\n}\nres += await Zotero.Knowledge4Zotero.NoteParse.parseAnnotationHTML(noteItem, [annotationItem], true);\nr(res);})}',
disabled: false,
},
{