Skip to content
master
Switch branches/tags
Code

Latest commit

…loud etc) WIP (#34)

* feat(oembed): use oembed parse to get the iframe

* test(oembed): add test to getIframe

* feat(oembed): compute aspect ratio

* feat(input): add contextual menu

* feat(readme): update doc

* feat(version): bump to 0.4.0
6f003ee

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Obsidian Plugin: Convert a URL (e.g. YouTube) into an iframe (preview)

Transform any URL into a preview.

Demo

  1. Select an url
  2. right click on it (or use the command Convert to Url Preview)
  3. Click on Url to Preview/Iframe. contextual menu

The default hotkey is cmd + alt + i.

Installation

Support for 3rd party plugins is enabled in settings (Obsidian > Settings > Third Party plugin > Safe mode - OFF) To install this plugin, download zip archive from GitHub releases page. Extract the archive into /.obsidian/plugins.

Change log

0.4.0

  • Instead of doing a custom mapping to embed for YouTube, we now rely on the OEmbed standard. Thanks to https://www.npmjs.com/package/oembed-parser
    • This allows to preserve the timestamp on Youtube and to get default size for many websites.
  • Add contextual menu (right click on a link) contextual menu

0.3.0

  • Simplify the output when using a recent Obsidian download, by leveraging aspect-ratio css.

0.2.0

  • Update: the keybinding from Mode + Shift + I to Alt + I (Issue 4)
  • Only output the app name in the console (Issue 3)
  • Add a aspect Ratio (defaults to 16:9 aspect ratio). (Kankaristo).
  • Make sure the iframe can work without the CSS class. (Kankaristo)
  • Fix the bad resizing when using Sliding Panes Plugin (Issue 1) (Kankaristo)
  • Better user messages and README.md (Kankaristo)
  • Preserve Youtube's timestamp Issue 14
  • Allow full screen iframes Issue 8

0.1.0

First release

Thank you