Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Note Template] #148

Closed
Bridge0415 opened this issue Sep 18, 2022 · 1 comment
Closed

[Note Template] #148

Bridge0415 opened this issue Sep 18, 2022 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@Bridge0415
Copy link

Template Type

QuickNoteV2

Desired Template Performance

  1. Attach the title of the item when adding the quick note to the main note.
  2. If the note has no comments, use "annotation" as the default title.

Snipaste_2022-09-18_12-13-21

Current Template

${await new Promise(async (r) => {
let res = "annotation"
if(annotationItem.annotationComment){
res = ""
res += Zotero.Knowledge4Zotero.parse.parseMDToHTML(annotationItem.annotationComment);
}
res +="<blockquote><i>《"
res +=topItem.getField('title')
res += "》</i></blockquote>"
res += await 
Zotero.Knowledge4Zotero.parse.parseAnnotationHTML(noteItem, [annotationItem], true);
r(res);})}
@windingwind
Copy link
Owner

Thank you!
Added to the doc here: #85 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants