Skip to content
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

Links lose their titles #325

Closed
calebdw opened this issue Aug 2, 2024 · 3 comments · Fixed by #334
Closed

Links lose their titles #325

calebdw opened this issue Aug 2, 2024 · 3 comments · Fixed by #334

Comments

@calebdw
Copy link
Contributor

calebdw commented Aug 2, 2024

Hello!

Currently, markdown links ([foo](https://foo.bar)) lose their titles and the actual link is shown italicized and underlined:

image

However, this removes context---oftentimes the link by itself doesn't tell me much. The title is there to explain the link or to hide away a lengthy url.

I have two ideas off the top of my head:

  1. Show the title instead of the link, and open the link when the title is clicked on (would an actual link be possible in the terminal?)
  2. If 1) is too complication / not doable, then show both, e.g., (the particular styling could be adjusted of course):
    image

Thanks!

@DrunkenToast
Copy link
Contributor

Show the title instead of the link, and open the link when the title is clicked on (would an actual link be possible in the terminal?)

This is a thing, there are ansi codes for it. But afaik, support for it in terminals is very sparse. printf '\e]8;;http://example.com\e\\This is a link\e]8;;\e\\\n' apparently works but none of my terminals support clicking it.

@mfontanini
Copy link
Owner

mfontanini commented Aug 10, 2024

I'm curious where showing this makes sense. People won't be running your presentations, at most they'll be opening the PDF output. I agree this is removing information that's present in markdown but also I don't see why you'd want to include this. It's mostly styling so you can always write

* Visit **my blog** [](https://my-blog.com).

And give it the style that you want. I chose to ignore the title in links because I honestly didn't see the point. Even in the PDF output you'd want to see the link. e.g. when you watch a presentation and they have references in a slide, you see plain links, not a link hidden behind some text.

@calebdw
Copy link
Contributor Author

calebdw commented Aug 10, 2024

Hmm, what if you automatically gave the title some styling (like an underline/bold or both etc) if it's included? Given that this is markdown it would make it easier to copy/paste to/from other markdown documents

E.g.,

* Visit [my blog](https://my-blog.com).

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 a pull request may close this issue.

3 participants