fix: underline annotation serialization

fix: #1222
This commit is contained in:
windingwind 2024-12-11 16:18:00 +01:00
parent 33330f0bda
commit 43a74a013b

View File

@ -161,11 +161,11 @@ function serializeAnnotations(
}
let template: string = "";
if (annotation.type === "highlight") {
if (["highlight", "underline"].includes(annotation.type)) {
template = Zotero.Prefs.get(
"annotations.noteTemplates.highlight",
) as string;
} else if (annotation.type === "note") {
} else if (["note", "text"].includes(annotation.type)) {
template = Zotero.Prefs.get("annotations.noteTemplates.note") as string;
} else if (annotation.type === "image") {
template = "<p>{{image}}<br/>{{citation}} {{comment}}</p>";