mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
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:
commit
8d69fb1077
1 changed files with 6 additions and 0 deletions
|
|
@ -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 ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue