Skip to content

[Bug] Leftovers in markdown links after Remove URL links format in selection #115

@nicolnt

Description

@nicolnt

Problem Description:
Some complex Markdown link is not correctly cleaned by the command "Remove URL links format in selection".
There are leftovers after the command is run.

How to reproduce the problem:

Basic example taken with some content pasted from Wikipedia

Input:

[Super-règne](https://fr.m.wikipedia.org/wiki/Super-r%C3%A8gne "Super-règne"), [Empire](https://fr.m.wikipedia.org/wiki/Empire_\(biologie\) "Empire (biologie)"), [Domaine](https://fr.m.wikipedia.org/wiki/Domaine_\(biologie\) "Domaine (biologie)")

Text source: https://fr.m.wikipedia.org/wiki/Phylum

Result:

Super-règne, Empire"), Domaine")

Result after "Remove URL links format in selection":

Expected:

Super-règne, Empire, Domaine

Environment

  • Obsidian version: v1.8.10
  • Text Format version: v3.1.0
  • Platform: Windows 11 Pro 10.0.26100

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions