[](../../releases)
[](../../commits/main/)
[](../../issues)
[](../../issues?q=is%3Aissue+is%3Aclosed)
[](/LICENSE)
[](https://obsidian.md/plugins?id=auto-embed)
# obsidian-auto-embed
[Obsidian](https://obsidian.md/) plugin to help embed links automatically instead of using iframes
## Getting Started
Assuming you have [Obsidian](https://obsidian.md/) downloaded,
Download the plugin: https://obsidian.md/plugins?id=auto-embed
### Embedding links
1. Paste a link
2. Select "Create Embed"
3. (Optional) Add [Options](#custom-options)
4. Done! Wait for the embed to load
https://github.com/user-attachments/assets/def3599a-bac6-4517-83f3-96fc6ba5a815
Uses the same syntax as Obsidian - [Embed Web pages](https://help.obsidian.md/Editing+and+formatting/Embed+web+pages). Syntax: ``
## Features
Auto embeds websites like: [Imgur](https://imgur.com/), [CodePen](https://codepen.io/), [Steam](https://store.steampowered.com/). Full list of [supported websites](#supported-websites)
### Supported websites:
#### Social Media:
- [X](https://x.com) *
- [Reddit](https://www.reddit.com/)
- [TikTok](https://www.tiktok.com/)
#### Sound/Music:
- [Spotify](https://open.spotify.com/) *
- [SoundCloud](https://soundcloud.com/)
#### Others:
- [CodePen](https://codepen.io/)
- [Steam](https://store.steampowered.com/)
- [Imgur](https://imgur.com/)
- [Notion](https://www.notion.so/) *
> [!WARNING]
> Websites with `*` means that it has some sort of limitation/note. See [Current Limitations & Known Bugs](#current-limitations--known-bugs) for more info
For unsupported websites, the plugin will embed the whole website and not modify it.
For a list with examples of how the websites look like [Supported Websites List](SupportedWebsiteList.md).
## Custom Options
How to add options:
- In between the square brackets - ``
- If you aren't sure which options are available, refer to the table below
### All options:
| Option | Description | Example Markdown |
|---|---|---|
|noembed|Disables embedding for this link. If possible, try using `[](link)` instead. Same syntax, just without '!'|``
|w:`value` / width:`value`|Sets embed's width|``
|h:`value` / height:`value`|Sets embed's height |``
Uses [CSS Units](https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Values_and_units#lengths) where applicable.
## Custom styles
TODO: Add a table that lists all the CSS classes users can override.
## How the plugin works
A brief overview with some steps on how the plugin works. *Not required to use the plugin*, just for those who are curious. Certain steps vary depending on whether you're in **Reading View** or **Live Preview**. However, the plugin doesn't have any impact when you're in source mode.
1. Search where in the document the syntax is found.
- In **Reading View**:
Searches for the `
` tag that's generated by Obsidian when you use this format: ``
- In **Live Preview**:
Searches for `` and gets the [options](#custom-options) and URL from it.
2. Get the URL from it, and convert it to the embed equivalent. Usually adds `/embed/` somewhere in the url. Results in the same website but focused only on the content. No headers, footer, etc
- Example:
https://codepen.io/jh3y/pen/LYNZwGm converts to https://codepen.io/jh3y/embed/LYNZwGm?default-tab=result&editable=true
3. Replace those tags with `