# marks/link

> Link — `<a href>` rendered with rel="noopener noreferrer"; every href is validated before it is committed (http, https, mailto, tel or relative).

Link (F-15) — `<a href>` rendered with rel="noopener noreferrer"; every href is validated before it is committed (http, https, mailto, tel or relative). ⌘K asks for a URL, a URL pasted over a selection links it, ⌘-click opens it. Markdown: `[text](url)`.

```js
import link from 'verbal-editor/marks/link';
```

| JS gzip | CSS gzip |
| --- | --- |
| 0.67 KB | — |

See it live on [Writing](#/examples/welcome) — every example page on the landing is editable.

## Contract

|  |  |
| --- | --- |
| Mark type | `link` |
| HTML | `<a>` |
| Shortcut | `⌘K` |
| Grows while typing | no |

## Acceptance

| Feature | Acceptance | Budget |
| --- | --- | --- |
| F-15 · Link | URL validated before commit; `rel="noopener noreferrer"` enforced | ≤ 1KB |
