Open jayemar opened 6 days ago
Thanks for reporting. I was able to reproduce this problem.
I am quite busy with other stuff, so I have no time to fix it soon. If anybody is willing to have a look and fix it then here https://github.com/pvojtechovsky/obsidian-link-with-alias/blob/050bdbed1b29c2e38591f88eec914f40f414a54c/src/main.ts#L236 is the place which should be checked.
Note: I never tried to switch off Wiki links. I like wiki links so it fits to my purposes. Therefore it is not urgent problem for me and has no priority for me. Anyway I confirm that it is bug, which should be solved and I will welcome a related pull request and I want to provide some technical support to fix the problem if needed.
Describe the bug If using markdown links instead of wiki links, selecting text and creating a link using "Link with alias" overwrites the selected text with the link itself instead of using the selected text as the link text.
To Reproduce Steps to reproduce the behavior:
Expected behavior Everything works as expected until item 4 above. When I select a note, I expect that note to be used as the link inside the parentheses of the new markdown link, and the highlighted text to be used as the link text within the square brackets.
Screenshots If applicable, add screenshots to help explain your problem.
Additional Information Current example: highlighted text -> my note file
Expected: highlighted text -> highlighted text