Add ability to follow hyperlinks and markdown links on mobile Markdown editor

On the mobile app, when using the Markdown editor, in order to follow hyperlinks or markdown links, you must switch to view mode. Now that there is a render markdown in editor setting which can be enabled, it would be good to have the ability to follow links without having to switch modes, in a similar way to how the Rich text editor handles this (using a pop over)

2 Likes

Note: Code for this currently exists, but isn't enabled.

1 Like

Hey, I implemented this behind a new "Markdown editor: Show link tooltip" setting (defaults to disabled) - the code for followLinkTooltipExtension already exists but wasn't wired in. Ctrl+Click on desktop stays unaffected.

I had a PR up (#14512) but it was closed as the issue needed discussion first. Happy to open a new PR once this is approved.

2 Likes

Linking the GitHub issue for reference: Mobile: Missing ability to follow hyperlinks and markdown links in the markdown editor when in edit mode · Issue #14507 · laurent22/joplin · GitHub

2 Likes

Checking back on this, quick recap of what i did in the closed PR for context:

The followLinkTooltipExtension already exists in the codebase but was never wired in, i added a new linkTooltipOnly export from it (to avoid duplicate StateField with the existing ctrlClickLinksExtension), and hooked it up behind a new toggle setting "Markdown editor: Show link tooltip" that defaults to off. When enabled, placing cursor on a link shows a clickable tooltip to follow it. Ctrl+Click on desktop works as before regardless of the setting.

Let me know if anything needs to change,happy to open a new PR.

ss for quick reference: