Skip to content

Commit

Permalink
Merge pull request #4488 from omnivore-app/jacksonh/export-notes
Browse files Browse the repository at this point in the history
Export highlights of type note if they have content attached
  • Loading branch information
jacksonh authored Nov 3, 2024
2 parents d41de25 + 67d152d commit 8d69fb1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/api/src/utils/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 ''
Expand Down

0 comments on commit 8d69fb1

Please sign in to comment.