Ellpeck / ObsidianCustomFrames

An Obsidian plugin that turns web apps into panes using iframes with custom styling. Also comes with presets for Google Keep, Todoist and more.
MIT License
578 stars 30 forks source link

YouTube Code Block #115

Closed CraigRGordon closed 8 months ago

CraigRGordon commented 8 months ago

Instead of adding in a bunch of frames for every video I want to write up something on is there a way to manually create a custom-frame with just the code block?


#   ``````custom-frame
All properties listed here and values
#    ``````
Ellpeck commented 8 months ago

Hi! You can just create a single custom frame that links to YouTube itself, and then use the urlSuffix property to link the video you want to link. Specifically, you can set something like this:

The frame's url as https://www.youtube.com/watch?v=

And then a video can be displayed as

```custom-frames
frame: YouTube Video
urlSuffix: <video id>


You can find more info for accepted code block properties [in the README](https://github.com/Ellpeck/ObsidianCustomFrames?tab=readme-ov-file#%EF%B8%8F-markdown-mode) as well :)