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