Skip to content

Feature: Merging two identical links into one node #8150

@levensta

Description

@levensta

Description

In lexical, it is possible for two LinkNodes with identical URLs to be adjacent to each other. This situation can be reproduced manually: insert a TextNode or ElementNode that will split the link into two nodes, and then delete the inserted element.

Screen.Recording.2026-02-19.at.02.01.54.mov

Impact

It would be effective to merge the contents of adjacent links into a single node, as there is no compelling reason to maintain different nodes that lead to the same URL and do not contain any other content between them.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementImprovement over existing featurehyperlinksRelates to Lexical Links

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions