4

I would like markdown-mode to treat URLs as normal text, so that I can click on them to place the cursor inside them rather than loading the page in a browser.

I tried toggling goto-address-mode, which didn't help, and I tried removing http and https from the list of Markdown Uri Types. I tried a few other things that in retrospect don't make much sense; I looked through all the variables that began with markdown- and couldn't find any that applied.
Is there a way to do this?

manandearth
  • 2,068
  • 1
  • 11
  • 23
Jay Daigle
  • 41
  • 1

3 Answers3

3

You can place the cursor in the middle of a clickable element by doing a "long click" (i.e. press, hold for more than 0.5s, and then release).

Stefan
  • 26,154
  • 3
  • 46
  • 84
1

If the issue is editing hidden links (see the link text and not the address):

The easy "built-in" (keyboard / not mouse) solution for editing the link, will be to move your cursor to it (using the keyboard) and type M-x markdown-toggle-url-hiding, then you can edit the address as text. Have a look at Github issue

manandearth
  • 2,068
  • 1
  • 11
  • 23
1

You can turn it off.

Use C-h v mouse-1-click-follows-link to learn and change the default behaviour.

  • This answer is based on the excellent comment from @xuchunyang. While this comment was the correct answer. It was a comment, and the author did not promote it to an answer. – ctrl-alt-delor Feb 05 '23 at 09:12