diff --git a/src/utils/annotation.ts b/src/utils/annotation.ts index a78c11b..7a9c874 100644 --- a/src/utils/annotation.ts +++ b/src/utils/annotation.ts @@ -224,6 +224,7 @@ export async function parseAnnotationHTML( annotations: Zotero.Item[], options: { noteItem?: Zotero.Item; // If you are sure there are no image annotations, note is not required. + ignoreBody?: boolean; ignoreComment?: boolean; skipCitation?: boolean; } = {}, @@ -234,6 +235,10 @@ export async function parseAnnotationHTML( if (options.ignoreComment && annotJson?.comment) { annotJson.comment = ""; } + if (options.ignoreBody && annotJson?.text && annotJson?.comment) { + annotJson.text = annotJson.comment; + annotJson.comment = ""; + } annotationJSONList.push(annotJson!); }