omnivore-app / obsidian-omnivore

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

Allow syncing full article, not just highlights #43

Closed samwho closed 1 year ago

samwho commented 1 year ago

I have a use-case where having full article content synced to my vault would be fantastically useful. Is this something the project would consider adding? I'd be happy to take a swing at implementing it.

sywhb commented 1 year ago

Hey @samwho, you can use content variable in your template to import the article content.

For instance:

## Content
{{content}}
samwho commented 1 year ago

Oh my gosh, I completely missed that. Thank you so much.

samwho commented 1 year ago

Hmm, the content appears to have escaping.

I have synced the article https://www.bowtie.works/blog/baking-images-with-nix-for-robust-private-networks-at-bowtie and in the article we have this code block:

image

Which appears as this in Obsidian:

image
samwho commented 1 year ago

A-ha! Using {{&content}} removes the escaping. Hopefully this helps others who stumble upon this. :)