This plugin allows for the conversion of individually selected wikilinks to markdown links, and vice versa.
- Click your cursor somewhere within the link you want to convert.
- Either use the hotkey
Ctrl/cmd + shift + L
, or pressCtrl/cmd + p
to open the settings dialog and search forWikilinks to MDLinks: Toggle selected wikilink to markdown link and vice versa
. Just typing in a bit of the command, e.g. "toggle" would likely allow this command to show up via the suggestions the search dialog provides. - The selected link gets toggled to either wikilink format or markdown format, depending on what it was before.
- Toggle selected wikilink to markdown link and vice versa
- Convert all wikilinks in selected text to markdown
- Convert all markdown links in selected text to wikilinks
- Install via the
Third Party plugins
setting. Search forWikilinks to MDLinks
. - Activate the plugin in the settings.
- Clone this repo.
npm i
oryarn
to install dependenciesnpm run dev
to start compilation in watch mode.
Based on the following links:
https://github.com/obsidianmd/obsidian-sample-plugin https://github.com/obsidianmd/obsidian-api
- Updated for callback check
- Updated markdown link regex
- Updated certain functions as per Obsidian pull request recommendations
- Changed shortcut to
Ctrl/cmd + shift + =
due to conflict with previous.
- Initial release. Includes
Toggle selected wikilink to markdown link and vice versa
.