Better Markdown Links
approvedby mnaoumov
Adds support for angle bracket links and manages relative links properly
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.
Extend app.fileManager.generateMarkdownLink()
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 GenerateMarkdownLinkExtended.d.ts into your code.
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
The plugin is available in the official Community Plugins repository.
Beta versions
To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:
- Ensure you have the BRAT plugin installed and enabled.
- Click Install via BRAT.
- An Obsidian pop-up window should appear. In the window, click the
Add pluginbutton once and wait a few seconds for the plugin to install.
Debugging
By default, debug messages for this plugin are hidden.
To show them, run the following command:
window.DEBUG.enable('better-markdown-links');
For more details, refer to the documentation.
Support
My other Obsidian resources
See my other Obsidian resources.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.
