Skip to content

Delegate link text for raw links in a better way #742

@preetmishra

Description

@preetmishra

Currently, we use the last segment of a link for this purpose. It works well for links that have an image or a file. For instance, https://foo.com/image.png gets rendered as image.png. However, it does have a few caveats.

A route, suggested by @sumanthvrao, that we could take is the following:

  • If a link is an internal link, show its relevant part.
  • If a link is pointing to an image or a file, show its filename/ending.
  • If a link is a general link, show its domain name.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions