Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Linkify

matthewhchanmatthewhchan8k downloads

Convert matching text into links.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates16

This plugin converts text into links based on regular expressions. The regular expressions and link destinations are configurable on the Options page for the plugin.

For example, you could make social media handles link to the profile page so that @obsdmd becomes a link to http://twitter.com/obsdmd:

Screenshot 2023-09-29 at 2 59 08 PM

Or you could make a shortcut for GitHub repos so that gh:obsidianmd/obsidian-releases becomes a link to http://github.com/obsidianmd/obsidian-releases:

Screenshot 2023-09-29 at 3 02 23 PM

The text you want to match and the URL you want it to link to are configured on the Options page for the plugin.

Note: The underlying text is not modified. This plugin only changes the appearance and functionality of your notes. It makes no changes to your .md files.

Usage

Add a Link Pattern

To add a link pattern:

  • Go to the Options page for Linkify.
  • Click on the Add New Link button.
  • In the first text box, enter a regular expression.
  • In the second text box, write the URL you want the text to link to.[^1]
  • (Optional) Enter a CSS class in the third text box that will also be applied to any matching text.
  • Close the Options page.

[^1]: The URL is allowed to include replacement patterns as described in String.prototype.replace.

Here's what the Linkify Options page looks like:

Linkify Options

Now, any text that matches a regular expression will be highlighted as though it were a link in Live Preview mode, and clicking on the text will open the link in a browser.

For example, if the regular expression is @(\w+) and the link pattern is http://twitter.com/$1, then any occurrence of @obsdmd in your notes will link to http://twitter.com/obsdmd, @github will link to http://twitter.com/github, etc.

Links to Obsidian notes, e.g. [[Journal/$1]], are also supported.

You can have multiple regex-link entries. Each one is applied independently.

Custom Styling For a Link Pattern

By default, links will have the linkified CSS class applied to them. You can add additional classes based on the pattern by adding them to the "CSS Class" field.

Delete a Link Pattern

You can delete an entry by clicking on the trash can icon to the right of the entry.

Default Link Patterns

By default, the plugin starts with three example entries:

  1. Text matching g:([a-zA-Z0-9.-]*) will link to http://google.com/search?q=$1.
  2. Text matching gh:([a-zA-Z0-9.-/]*)will link to http://github.com/$1.
  3. Text matching @([a-zA-Z0-9]*) will link to http://twitter.com/$1.

Export Rules

To export your rules as a JSON file, click the Export Rules button at the bottom of the Linkify Options page.

Import Rules

To import rules from a JSON file, click the Import Rules button at the bottom of the Options page and select a .json file. Imported rules are added to your existing rules.

77%
HealthExcellent
ReviewCaution
About
Convert matching text into clickable links using configurable regular-expression patterns. Define regex-to-URL mappings with replacement patterns and optional CSS classes; matches render as links in Live Preview and open in your browser without altering the underlying .md files.
LinksCSSAppearance
Details
Current version
1.0.16
Last updated
3 months ago
Created
5 years ago
Updates
16 releases
Downloads
8k
Compatible with
Obsidian 0.13.0+
License
MIT
Report bugRequest featureReport plugin
Author
matthewhchanmatthewhchan
GitHubmatthewhchan
  1. Community
  2. Plugins
  3. Links
  4. Linkify

Related plugins

Style Settings

Adjust theme, plugin, and snippet CSS variables.

Lapel

Show the heading levels in the gutter of the editor.

Link Favicons

See the favicon for a linked website.

Supercharged Links

Add attributes to internal links with the values of target note's frontmatter attributes.

Auto Card Link

Automatically fetches metadata from a URL and makes it as a card-styled link.

Focus Mode

Add a toggle to hide interface elements so you can focus on your note.

Contextual Typography

Add a data-tag-name attribute to all top-level divs in preview mode containing the child's tag name, allowing contextual typography styling.

Show Whitespace

CSS styles and CM6 extensions to highlight whitespace in Source and Live Preview modes.

Minimal Theme Settings

Control the colors and fonts in Minimal Theme.

Hider

Hide interface elements such as tooltips, status bar, titlebar, and more.