Skip to content

Obsidian plugin that adds support for angle bracket links and manages relative links properly

License

Notifications You must be signed in to change notification settings

mnaoumov/obsidian-better-markdown-links

Repository files navigation

Better Markdown Links

This is a plugin for Obsidian that adds support for angle bracket links and manages relative links properly.

Angle Bracket Links

Markdown links [Title](path/to/note.md) are better for compatibility purposes as [[Wikilink]] is not part of the Markdown spec.

However, links with spaces [Title](path%20with%20space/note%20with%20space.md) are quite unreadable.

The Markdown spec allows more readable links [Title](<path with space/note with space.md>), which work fine in Obsidian, but Obsidian doesn't generate such angle bracket links.

This plugin makes Obsidian generate angle bracket links.

Relative Links

There is a problem in Obsidian where relative paths might be incorrectly resolved as absolute paths, causing the same link to behave differently in Obsidian and other Markdown editors.

This plugin ensures that relative paths are prepended with ./, e.g., [Title](./path/to/note.md), to overcome the above-mentioned problem.

Link Conversion

This plugin adds the ability to convert all links in an individual note or the entire vault.

Automatic Link Conversion

This plugin adds the ability to automatically convert all new links entered manually to the selected format.

Automatic handling rename/move

This plugin adds the ability to automatically update links to the renamed or moved to another directory files.

To improve performance, consider installing Backlink Cache plugin.

This plugin enhances the app.fileManager.generateMarkdownLink() function by adding an additional overload.

If you want to use the updated functions from your plugin, you can copy types.d.ts into your code.

Note: The plugin's setting Ignore incompatible Obsidian settings sets the default value of isWikilink to false.

Integration with other plugins

This plugin is handling rename/delete events based on the plugin settings. Similar handlers are added to other plugins:

But those handlers are designed to work fine with each other and the plugins can be installed together.

Installation

License

© Michael Naumov

About

Obsidian plugin that adds support for angle bracket links and manages relative links properly

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published