Skip to content

Move the <Linkify> component to shared-components #32689

@Half-Shot

Description

@Half-Shot

Your use case

Pulled out from #32525

We need to have https://github.com/vector-im/riot-web/blob/092da649ed95a4bdc809176848612e658ecf8f5e/apps/web/src/Linkify.tsx#L197-L198 in shared-components because it's useful for the ability to take a bunch of HTML/plaintext data and turn it into linking text. It also does a lot more than that though, including:

  • Handling permalinks to other Matrix rooms / messages / users.
  • Handling aliases and users and turns them into pills.
  • Rewriting (legacy) MXC URLs.
  • Some security features on top.

Have you considered any alternatives?

We could instead reevaluate whether all these features are needed in modern Matrix / usage, which would be a good discussion to have with product.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions