Yuto Takagi38 downloadsPaste a URL and pick how it lands: a preview card with title, description and thumbnail, a Markdown link with the page title, or the plain URL.
Paste a URL and pick how it lands in your note:
| Choice | Result |
|---|---|
| Card | A preview card with the page title, description, thumbnail and site icon |
| Link | [Page title](https://…) — a Markdown link with the title filled in |
| Plain URL | The URL exactly as pasted |
The URL is pasted immediately and the menu opens at the cursor. Pressing Esc or clicking elsewhere keeps the plain URL, so the plugin never gets in the way of an ordinary paste.
Copy a URL, paste it into a note, and choose Card, Link or Plain URL from the menu.
The menu does not appear when the paste is clearly something else:
](, < or href="Converting a card to a link reuses the title stored in the card, so no request is made.
A card is a fenced code block with one key: value per line:
```linkcard
url: https://obsidian.md/
title: Obsidian - Sharpen your thinking
description: The free and flexible app for your private thoughts.
image: https://obsidian.md/images/banner.png
favicon: https://obsidian.md/favicon.ico
site: Obsidian
```
url is required. Edit any line by hand to change what the card shows.To build a card or a titled link, the plugin sends one GET request to the URL you chose, using Obsidian's requestUrl, and reads the page's <title>, Open Graph and Twitter card tags. Nothing is sent anywhere else, and no request is made when you choose Plain URL or close the menu.
Card images and icons are loaded from the sites that host them, with referrerpolicy="no-referrer".
Some sites return little or no metadata to requests that are not from a browser. The card then falls back to the host name, and the link falls back to the plain URL with a notice.
Copy main.js, manifest.json and styles.css from the latest release into <vault>/.obsidian/plugins/link-or-card/, then enable Link or Card under Settings → Community plugins.
Works on desktop and mobile.
npm install
npm run dev # rebuild on change
npm run check # typecheck, tests, review checks and production build
MIT