Export highlights of type note if they have content attached

This commit is contained in:
Jackson Harper
2024-11-03 11:44:38 +08:00
parent d41de25d23
commit 67d152d8cd

View File

@ -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 ''