Link Embed

by SErAphLi
5
4
3
2
1
Score: 73/100

Description

Category: Note Enhancements

The Link Embed plugin is a powerful tool that allows you to convert URLs in your Obsidian notes into embedded previews. With this plugin, you can easily turn links into visually appealing and informative snippets that provide metadata about the linked content. Whether you're sharing an article, a video, or a website, this plugin makes it easy to add rich context to your notes without having to copy and paste large amounts of text. The plugin supports multiple parsers, including JSONLink, MicroLink, and Iframely, each with its own strengths and limitations. By enabling auto-embed in the settings, you can have links automatically replaced with embedded previews when you paste them into an empty line. Overall, Link Embed is a great tool for anyone looking to enhance their note-taking experience with rich media content.

Reviews

No reviews yet.

Stats

244
stars
94,886
downloads
21
forks
1,474
days
143
days
143
days
12
total PRs
1
open PRs
4
closed PRs
7
merged PRs
71
total issues
7
open issues
64
closed issues
0
commits

Latest Version

5 months ago

Changelog

Bugs fixed:

  • add parentheses to URL regex for Wikipedia-style URLs, fix #80(9912832) (by SErAphLi)
  • restore vault parameter for save images to vault feature, fix #79(b5c9e9d) (by SErAphLi)

README file from

Github

This plugin allows you to convert URLs in your notes into embedded previews.

This is how it looks.

demo

Note Starting from 2.0.0, embeds are rendered with MarkdownCodeBlockProcessor, which avoids expanding the HTML block. You can convert your old embeds to new code blocks with the Convert button in the setting.

PS: If you happen to know any other website that provides free API for users to grab metadata from URLs, please let me know. This plugin can be more robust with your help.

Usage

The easiest way to use is by pasting your link and then creating an embed preview.

When pasting a URL, a popup suggestion menu will appear (if enabled) with options to:

  • Create Embed - Converts the URL into an embedded preview
  • Create Markdown Link - Converts the URL into a standard markdown link [title](url)
  • Dismiss - Closes the popup (can be removed in settings)

Additionally, there are three ways to pass the URL to this plugin.

  1. Selecting the URL you want to parse

If nothing is selected

  1. Put your cursor within the URL text that you want to parse

Or

  1. Copy the URL into the clipboard

Then

  • Open the command Palette
  • Select the command Link Embed: Embed link

In case some parsers are not working, you can also use the Link Embed: Embed link with ... to specify one parser.

Settings

If you enable Auto Embed in the setting, the plugin will automatically replace the link with an embed preview when you paste the link into an empty line. Although this option is quite convenient, I set the default setting to false in case someone doesn't know what happened.

You can change the default parser in the plugin settings. The plugin supports a primary and secondary parser configuration with fallback mechanism - if the primary parser fails, the plugin will try the secondary parser.

In Place means the selection in the editor will be removed and replaced with the embed.

By default, the embedded preview will be inserted into the next line, but this can be changed with the In Place option.

Advanced Settings
  • Save Images to Vault: When enabled, images from embedded links will be downloaded and saved to your vault.
  • Image Folder Path: Specify the folder where images will be saved (default: "link-embed-images").
  • Respect Aspect Ratio: Preserves the original aspect ratio of embedded images for better visual layout.
  • Use Cache: When enabled, the plugin will cache favicon images and aspect ratios to improve performance.
  • Enable Favicon: When enabled, website favicons will be displayed in link embeds.
  • Max Concurrent Local Parsers: Maximum number of simultaneous local parsing operations. Lower values reduce system load but might make link embeds appear more slowly.
  • Metadata: A feature that allows you to include custom information with your embeds. This can be used to add notes, tags, or any additional data you want to associate with the embedded link.
  • Metadata Template: Customize metadata with variables like {{parser}} for parser type, {{date}} for date. For custom date format use {{#formatDate}}YYYY-MM-DD HH:mm:ss{{/formatDate}}.

Similar to the Link Favicons plugin, this plugin can display favicons next to regular markdown links:

  • Enable Markdown Link Favicon: When enabled, favicons will be displayed next to markdown links in both reading mode and live preview mode.
  • Favicon Position: Choose whether to display the favicon before or after the link text.
  • Show on Aliased Links: Control whether to show favicons on links with aliases (e.g., [Obsidian](https://obsidian.md/)).
  • Show on Plain Links: Control whether to show favicons on plain links without aliases (e.g., https://obsidian.md/).

To disable favicon on a specific link, add |nofavicon to the link alias:

[Display text|nofavicon](https://example.org)

Supported Parsers

The plugin supports the following parsers:

  • Local (Default) - No API needed, parses HTML directly
  • JSONLink - Requires API key
  • MicroLink - Limited to 50 requests per day
  • Iframely - Limited to 1000 requests per month
  • LinkPreview - Requires API key

Embed Format

Starting from version 2.0.0, embeds are stored in code blocks:

title: "Example Title"
image: "https://example.com/image.jpg"
description: "This is an example description"
url: "https://example.com"
favicon: "https://example.com/favicon.ico"
aspectRatio: "1.5"
metadata: "Additional custom metadata can be included here"
parser: "local"
date: "2023-04-01"
custom_date: "2023-04-01 13:45:22"

The aspectRatio parameter is optional and helps maintain the proper image dimensions.

The favicon parameter is optional and displays the website's favicon icon.

The metadata field is also optional and can be used to include any additional information you want to associate with the link.

Interface Features

  • Refresh Button: When hovering over an embedded link, a refresh button appears that allows you to update the link metadata and preview without recreating the embed. This is particularly useful when the content of the original link has been updated and you want to refresh the embedded preview to reflect these changes.
  • Copy Button: When hovering over an embedded link, a copy button appears that allows you to quickly copy the embed code for sharing or reusing elsewhere in your notes.
  • Popup Menu: When enabled, pasting a URL will show a popup menu with options to create an embed, create a markdown link, or dismiss.
  • In-place Replacement: Option to replace the selected URL with the embed instead of inserting on the next line.

Performance Features

  • Caching System: Images and favicons are cached to improve performance and reduce API calls.
  • Concurrency Limiter: Controls how many local parsers can run simultaneously to prevent system overload.
  • Lazy Loading: Images are loaded asynchronously to improve rendering performance.

Current Version

The current plugin version is 2.8.4. Check the GitHub repository for the latest updates and changes.

See Also

obsidian-aggregator

Thanks

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Link Favicons
4 years ago by Johannes Theiner
See the favicon for a linked website.
Core Search Assistant
4 years ago by qawatake
An Obsidian plugin to enhance built-in search: keyboard interface, card preview, bigger preview
Insert Heading Link
4 years ago by Signynt
Add a Link to a Heading.
Notion Video Embed
4 years ago by lastknightcoder
Auto Card Link
4 years ago by Nekoshita Yuki
Enlightenment
4 years ago by ryanjamurphy
Pay attention to what you're paying attention to.
Local Quotes
4 years ago by ka1tzyu
📜 Collect your quotes from all over the vault and embed them in different locations with refresh delays
Linkify
4 years ago by Matthew Chan
Zotero Link
4 years ago by Shmavon Gazanchyan
Obsidian plugin to insert link to Zotero item
Metadata Menu
4 years ago by mdelobelle
For data management enthusiasts : type and manage the metadata of your notes.
Embed Code File
4 years ago by Abdullah Almariah
URL Namer
4 years ago by zfei
Update Relative Links
4 years ago by val
Account Linker
4 years ago by qwegat
Plugin for posting links to various SNS accounts on Obsidian
External Link Opener
3 years ago by zorazrr
Obsidian plugin to open external links in modals or tabs
External Link Helper
3 years ago by Jhonghee Park
Obsidian plugin for link suggestion
Boost Link Suggestions
3 years ago by Jacob Levernier
An Obsidian (https://obsidian.md) plugin for altering the order of inline link suggestions by link count and manual boosts.
Hugo preview obsidian
3 years ago by fzdwx
:superhero: Hugo preview in obsidian
Short Internal Links to Headings
3 years ago by Scott Moore
An Obsidian plugin to display short internal links.
Pending notes
3 years ago by Ulises Santana
Obsidian plugin for searching links without notes in your vault.
Link Exploder
3 years ago by Ben Hughes
Floating Search
3 years ago by Boninall
A plugin for searching text by using Obsidian default search view.
Testing Vault
3 years ago by Michael Pedersen
Bulk open selected links
3 years ago by Steven Jin
This plugin would work by extending Obsidian's functionality to detect when multiple notes or files are being dragged onto its interface
Links
3 years ago by MiiKey
manipulate & manage obisidian links
Persistent Links
3 years ago by Ivan Lednev
More robust internal links for Obsidian!
Canvas Links
3 years ago by aqav
Show the links between "Canvas" and "File"
Shukuchi
3 years ago by tadashi-aikawa
Shukuchi is an Obsidian plugin that enables you to teleport to links (URL or internal link).
Markdown Link Space Encoder
3 years ago by Ron Kosova
Obsidian plugin to automatically encode spaces to %20 in Markdown-style links
LinkShelf
3 years ago by Joel Sequeira
Effortlessly save and organize your web links in Obsidian
Nifty Links
3 years ago by x-Ai
Generating elegant, Notion-styled rich link cards to enhance your note-taking experience.
GitHub Embeds
3 years ago by Gino Valente
Embed GitHub issues, PRs, and code snippets directly in Obsidian
2Hop Links Plus
3 years ago by Tokuhiro Matsuno, L7Cy
Related links up to 2 hops away are displayed in a card format.
Just Share Please
3 years ago by Ellpeck
An Obsidian plugin that allows quickly and easily sharing individual notes online using an anonymized link
Email Reader
3 years ago by Pulsovi
Next Link
3 years ago by Juan Luque
Enhance YouTube Links
3 years ago by GitSum
Take a YouTube link and get the title and optionally channel name, channel URL, and thumbnailURL.
Timestamp Link
2 years ago by wenlzhang
An Obsidian plugin to copy timestamped links to blocks, headings and notes.
Note Batcher
2 years ago by MrAnyx
Create all unresolvered links with a single click on your Obsidian vault
Paste Link
2 years ago by Jose Elias Alvarez
Intelligently paste Markdown links in Obsidian.
Spotify Links
2 years ago by Dillon Cutaiar
For those that get inspired to write by music, a small plugin connecting Spotify to Obsidian.md
Canvas Link Optimizer
2 years ago by khaelar
An Obsidian plugin that optimizes canvas links by displaying a page thumbnail.
Tag Links
2 years ago by Zacchary Dempsey-Plante
A plugin for Obsidian that allows tags to be opened as links using a hotkey.
Alias Picker
2 years ago by rostunic
Virtual Linker / Glossary
2 years ago by Valentin Schröter
Plugin for obsidian that automatically generates virtual links for text within your notes that match with the titles or aliases of other notes in your vault.
Refresh Preview
2 years ago by mnaoumov
Obsidian Plugin that allows to refresh any view without reopening it.
mpv links
2 years ago by patsh90
Obisidian plugin for creating and using video links
Better Markdown Links
2 years ago by mnaoumov
Obsidian plugin that adds support for angle bracket links and manages relative links properly
Paste as Embed
2 years ago by Matt Laporte
Obsidian plugin to paste contents of clipboard into a new note, and embed it in the active note.
Text expand
6 years ago by MrJackphil
A simple text expand plugin for Obsidian.md
Jump to link
6 years ago by MrJackphil
Quick jump between links using hotkeys
Convert url to preview (iframe)
6 years ago by FHachez
Plugin for Obsidian.md to convert a selected URL to an iframe.
Find orphaned files and broken links
5 years ago by Vinzent
Find files, which are nowhere linked, so they are maybe lost in your vault.
Consistent attachments and links
5 years ago by Dmitry Savosh
Obsidian plugin. Move note with attachments.
Buttons
5 years ago by Sam Morrison
Buttons in Obsidian
Auto Link Title
5 years ago by Matt Furden
Automatically fetch the titles of pasted links
2Hop Links
5 years ago by Tokuhiro Matsuno
Open Link With
5 years ago by MamoruDS
Open external link with specific brower in Obsidian
Breadcrumbs
5 years ago by SkepticMystic
Add typed-links to your Obsidian notes
Rich Links
5 years ago by dhamaniasad
Hover External Link
5 years ago by Jamie Brynes
Small plugin to add tooltips on hovering external links
Better File Link
5 years ago by Marc Julian Schwarz
A plugin for the note taking app Obsidian to add better external file links to your notes.
Link Converter
5 years ago by Ozan Tellioglu
Obsidian Plugin to scan all your links in your vault and convert them to your desired format.
Link Archive
5 years ago by Tamás Deme
Link Archive plugin for Obsidian
Auto Split
4 years ago by James Sartelle
Open notes with side-by-side editor & preview
Publish and GitHub URL
4 years ago by kometenstaub
Copy or open the Obsidian Publish URL of a note. You can also open its Git commit history on GitHub.
Figma Embed
2 years ago by Kyle Kochanek
Obsidian plugin to embed live Figma files in your markdown notes.
Link Navigation
2 years ago by xRyul
Navigate between incoming links (inlinks), outgoing links (outlinks) N levels deep. Links from Canvas are also supported.
Modal Opener
2 years ago by Muuxi
Open files and links in modal windows, or create and edit compatible files in modal windows.
Local Media Embedder
2 years ago by seyf1elislam
an obsidian plugin allows you to Embed videos and images and audios from your local device in your notes.
Link Preview
a year ago by Felipe Tappata
Obsidian plugin that previews external links on hover.
Abbrlink
a year ago by Q78KG
Share as ZIP
a year ago by Till Friebe
Force Read Mode
a year ago by al3xw
New Note Fixer
a year ago by mnaoumov
Obsidian Plugin that unifies the way non-existing notes are created when clicking on their links
Title As Link Text
a year ago by Lex Toumbourou
An Obsidian plugin to set the Link Text using the document title
Collapsible Code Blocks
a year ago by Bradley Wyatt
Obsidian Plugin that makes code blocks collapsible in reading and edit view as well as enabling scroll-able code blocks.
Node Factor
a year ago by CalfMoon
Customize factors effecting node size in obsidian graph.
Model Viewer
a year ago by Janis Pritzkau
An Obsidian plugin to view and embed 3D models using Google’s <model-viewer> component.
MP Preview
a year ago by Yeban
一个帮助你快速将 Obsidian 笔记转换为微信公众号格式的插件。
Ace Code Editor
a year ago by RavenHogWarts
An enhanced code editor using Ace editor
Send to Canvas
10 months ago by wenlzhang
An Obsidian plugin that allows you to send tasks, blocks, and notes to Canvas files as plain text, links, and embeds.
Ghost Text
8 months ago by lawrencefeng17
GH Links Shortener
6 months ago by David Barnett
Obsidian plugin to set shortened link text for pasted GitHub URLs
Card Forge
2 months ago by Carl Sverre
Convert notes into printable cards.