omnivore-app / obsidian-omnivore

Obsidian plugin to fetch articles and highlights from Omnivore
MIT License
726 stars 39 forks source link

Embed YouTube video #169

Open firmart opened 6 months ago

firmart commented 6 months ago

Currently, YouTube videos cannot be viewed inside Obsidian as they are converted into simple Markdown link [title](url). It would be nice to handle them differently using the embed syntax ![title](url) so that we can watch directly the video inside Obsidian.

bikelanta commented 5 months ago

Definitely in support of this change. No ability to code this, so can't offer support, but can give a thumbs up to this feature.

aaachen commented 5 months ago

Wouldn't updating the article template work?

![title]({{{originalUrl}}})

Is the issue about the template distinguishing normal article and youtube articles (for rendering link as either [title](url) or ![title](url))?

firmart commented 5 months ago

Some clarifications : I''m talking about the {{{content}}} of a YouTube article, which has essentially the form of

[title](youtubeUrl)

By [Author](channelUrl)

I suggested in this issue that [title](youtubeUrl) should be ![title](youtubeUrl) so that we have the video embedded and not just a hyperlink.