Auto-convert regex patterns to clickable links in Obsidian, similar to GitHub's autolink feature but with full regex support.
| Editor | Options |
|---|---|
![]() |
![]() |
Visit the Obsidian Community Plugins page and click Add to Obsidian, then enable the plugin.
main.js, manifest.json, and styles.css from the latest release<vault>/.obsidian/plugins/autolinks/ISSUE-(\d+))https://github.com/myorg/myrepo/issues/$1)| Pattern | URL Template | Input | Output Link |
|---|---|---|---|
ISSUE-(\d+) |
https://github.com/myorg/myrepo/issues/$1 |
ISSUE-123 |
https://github.com/myorg/myrepo/issues/123 |
(ABC|DEF)-(\d+) |
https://notion.so/myteam/$1-$2 |
ABC-123 |
https://notion.so/myteam/ABC-123 |
\$([A-Z]{3}) |
https://finance.yahoo.com/quote/$1 |
$AAPL |
https://finance.yahoo.com/quote/AAPL |
PR#(\d+) |
https://github.com/myorg/myrepo/pull/$1 |
PR#456 |
https://github.com/myorg/myrepo/pull/456 |
@([a-zA-Z0-9_]+) |
https://twitter.com/$1 |
@username |
https://twitter.com/username |
Use $1 through $9 in your URL template to reference capture groups from your regex pattern:
Pattern: USER-(\d+)-([A-Z]+)
URL: https://example.com/users/$1/type/$2
Input: USER-123-ADMIN
Output: https://example.com/users/123/type/ADMIN
Auto Links automatically skips creating links in:
......Example:
Normal text: ISSUE-123 ← becomes a link
Code block:
ISSUE-123 ← NOT a link
Inline code: `ISSUE-123` ← NOT a link
Existing link: [ISSUE-123](http://example.com) ← NOT a link
Wikilink: [[ISSUE-123]] ← NOT a link
When multiple patterns could match the same text, the first matching pattern wins. This prevents overlapping links.
Example:
Pattern 1: ISSUE-(\d+)
Pattern 2: ISSUE-123
Input: "See ISSUE-123"
Result: Only Pattern 1 matches (Pattern 2 never evaluated for this position)
\d+ (one or more digits)[A-Za-z]+ (one or more letters)[A-Za-z0-9]+\w+ (letters, numbers, underscore)[ABC]+ (only A, B, or C)If your pattern includes special regex characters, escape them with \:
. → \.$ → \$( → \([ → \[Use regex101.com to test your patterns before adding them to Obsidian.
The plugin validates regex patterns when you save. If you see an error:
[, ], (, )(...) not (...Auto Links is designed for performance:
# Install dependencies
bun install
# Development build (watch mode)
bun run dev
# Production build
bun run build
MIT