From 67d152d8cd17489edf4a16e4782ace3885f56590 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Sun, 3 Nov 2024 11:44:38 +0800 Subject: [PATCH] Export highlights of type note if they have content attached --- packages/api/src/utils/parser.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/api/src/utils/parser.ts b/packages/api/src/utils/parser.ts index 3acd06886..67a8b1034 100644 --- a/packages/api/src/utils/parser.ts +++ b/packages/api/src/utils/parser.ts @@ -879,6 +879,12 @@ export const highlightToMarkdown = (highlight: Highlight): string => { return `> ${quote} ${labels ? `\n\n${labels}` : ''}${ note ? `\n\n${note}` : '' }` + } else if ( + highlight.highlightType == HighlightType.Note && + highlight.annotation + ) { + const note = highlight.annotation + return `${note}\n\n` } return ''