Merge pull request #4488 from omnivore-app/jacksonh/export-notes

Export highlights of type note if they have content attached
This commit is contained in:
Jackson Harper
2024-11-03 12:00:32 +08:00
committed by GitHub

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