No description
Find a file
2025-08-11 07:56:00 -07:00
.github/ISSUE_TEMPLATE Update issue templates 2025-08-11 07:56:00 -07:00
.editorconfig Initial commit 2025-05-26 15:00:34 -07:00
.eslintignore Initial commit 2025-05-26 15:00:34 -07:00
.eslintrc Initial commit 2025-05-26 15:00:34 -07:00
.gitignore chore: init 2025-05-26 15:43:05 -07:00
.npmrc Initial commit 2025-05-26 15:00:34 -07:00
esbuild.config.mjs Initial commit 2025-05-26 15:00:34 -07:00
jest.config.js Jest tests & plugin use same removeHyperlinks() (#3) 2025-07-01 10:19:17 -07:00
LICENSE Update LICENSE 2025-07-01 20:28:57 -07:00
main.ts feat: implement hyperlink type filtering and hyperlink/wikilink whitelisting features 2025-08-05 17:24:52 -07:00
manifest.json build: version bump 2025-08-05 17:40:35 -07:00
package.json build: version bump 2025-08-05 17:40:35 -07:00
README.md Update README.md 2025-08-08 20:30:42 -07:00
removeLinks.test.ts test: remove duplicate tests 2025-08-05 17:29:00 -07:00
removeLinks.ts build: version bump 2025-08-05 17:40:35 -07:00
tsconfig.json Initial commit 2025-05-26 15:00:34 -07:00
version-bump.mjs Initial commit 2025-05-26 15:00:34 -07:00
versions.json build: version bump 2025-08-05 17:40:35 -07:00

Link Removal Plugin

  • Simple and lightweight plugin for Obsidian to remove hyperlinks and wikilinks from either selections or the entire file.

Right in the Context Menu!

Input Output
[Google](www.google.com) Google
[text with [brackets]](https://example.com) text with [brackets]
[text with \[escaped\] brackets](https://example.com) text with \[escaped\] brackets
[OK go song](https://en.m.wikipedia.org/wiki/I_Won%27t_Let_You_Down_(OK_Go_song)) OK go song
![](image.png) REMOVED
Input Output
[[example.md]] example.md
[[example.md|alias]] alias OR REMOVED (depending on setting)
![[example.png]] REMOVED
![[example.png|300]] REMOVED
[[text with \\[escaped\\] brackets]] text with \\[escaped\\] brackets
[[text with \\[escaped\\] brackets|alias]] alias OR REMOVED (depending on setting)

Easy Command and Hotkey Assignment

Advanced Features

You can choose which types of hyperlinks to remove:

  • Both Internal and External : Removes all hyperlinks
  • Internal Links Only: Only removes internal links like [Page](page.md), [Section](#heading)
  • External Links Only: Only removes external links like [Site](https://example.com)

You can whitelist specific domains or URLs that should never be removed.

Note: Whitelist matching is case-insensitive and uses partial matching.

You can whitelist specific wikilink paths that should never be removed.

Note: Wikilink whitelist uses exact matching (case-insensitive). The entire wikilink path must match the whitelist entry.

Say Thanks

If you like this plugin and would like to buy me a coffee, you can!

BuyMeACoffee

Release Notes

  • 1.0.0: Initial release.
  • 1.1.0: Add Notice's for hyperlink removal logic and added context menu options.
  • 1.2.0: Added unit testing (for developers) and updated hyperlink removal logic to handle more edge cases.
  • 1.2.1: Improved plugin structure, this does not affect functionality but makes it easier to maintain and extend in the future.
  • 1.3.0: Added hyperlink removal from image attachment case
  • 2.0.0: Added WikiLinks support with option to keep or remove alias
  • 2.1.0: Added optional setting to keep or remove hyperlink text in [text](link)
  • 2.1.1: Added hyperlink whitelist feature to preserve specified domains/URLs
  • 2.2.0: Added hyperlink type filtering (internal/external/both) and hyperlink/wikilink whitelist feature