omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
757 stars 41 forks source link

Article notes not getting synced #54

Closed Eikansh closed 1 year ago

Eikansh commented 1 year ago

Hi,

Thanks for the plugin. The plugin is able to sync highlights and noted attached to them.

But the article notes are not getting synced.

Eikansh commented 1 year ago

Was able to do it. Added {{{note}}} before highlights were defined in template.

mathisgauthey commented 1 year ago

Did you manage to make a header containing this {{{note}}} just like highlights that's here only if there's any article note ?

Edit : This is a working solution

# {{{title}}}

#Omnivore

[Read on Omnivore]({{{omnivoreUrl}}})
[Read Original]({{{originalUrl}}})

{{#note}}
## Notes

{{{note}}}
{{/note}}

{{#highlights.length}}
## Highlights

{{#highlights}}
> {{{text}}} [⤴️]({{{highlightUrl}}}) {{#labels}} #{{name}} {{/labels}}
{{#note}}

{{{note}}}
{{/note}}

{{/highlights}}
{{/highlights.length}}
## Webpage

{{{content}}}
AaronKnowls commented 8 months ago

Did you manage to make a header containing this {{{note}}} just like highlights that's here only if there's any article note ?

Edit : This is a working solution

# {{{title}}}

#Omnivore

[Read on Omnivore]({{{omnivoreUrl}}})
[Read Original]({{{originalUrl}}})

{{#note}}
## Notes

{{{note}}}
{{/note}}

{{#highlights.length}}
## Highlights

{{#highlights}}
> {{{text}}} [⤴️]({{{highlightUrl}}}) {{#labels}} #{{name}} {{/labels}}
{{#note}}

{{{note}}}
{{/note}}

{{/highlights}}
{{/highlights.length}}
## Webpage

{{{content}}}

Thank you so much for this!!!