Skip to content

mdlink: Add option to send mobile-friendly link #33

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 15, 2025

Conversation

L3viathan
Copy link
Contributor

@L3viathan L3viathan commented Jun 13, 2025

When copying a message on mobile, you have to copy the entire message anyways, and then you have to remove the backticks. This option allows the link to be sent escaped instead of in backticks, i.e.,

    \[foo](http://bar.com)

instead of

    `[foo](http://bar.com)`
image

Opinions?

  • I currently don't escape the link itself (i.e., it remains clickable). I don't know if that's good or bad
  • Thoughts on the wording? Currently you can use m or mobile, but it's really only tangentially related to being for mobile apps. raw/r (it's not really raw)? escaped/e (the default is also escaped in a sense)?

Copy link
Member

@vivekashok1221 vivekashok1221 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit

@jb3
Copy link
Member

jb3 commented Jun 15, 2025

I think mobile is fine, but plain would probably be the word you're looking for? (in case you wanted to add both)

When copying a message on mobile, you have to copy the entire message
anyways, and then you have to remove the backticks. This option allows
the link to be sent escaped instead of in backticks, i.e.,

        \[foo](http:\/\/bar.com)

instead of

        `[foo](http://bar.com)`
@L3viathan
Copy link
Contributor Author

I think mobile is fine, but plain would probably be the word you're looking for? (in case you wanted to add both)

Yeah, thanks, that's indeed what I was looking for. Changed/added plain and p.

@ChrisLovering ChrisLovering merged commit 6824aff into main Jun 15, 2025
1 check passed
@ChrisLovering ChrisLovering deleted the mobilefriendly branch June 15, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants