agathauy / wikilinks-to-mdlinks-obsidian

An Obsidian md plugin which allows for the conversion of individually selected wikilinks to markdown links, and vice versa.
105 stars 13 forks source link

Wikilink with Display-Text is not converted properly #20

Open SpocWeb opened 7 months ago

SpocWeb commented 7 months ago

Example: [[myFile.md|sample File]] should be converted to [sample File](myFile.md), but currently the Pipe-Symbol | is not parsed as a Separator, although it must never appear in a File-Name or Path. Therefore the Display-Text is falsely included into the URL of the Wikilink like this [myFile.md|sample File](myFile.md%7Csample%20File.md)

If you don't have the Capacity, I could try to provide a Pull-Request for fixing this.

Regards...

SpocWeb commented 7 months ago

Similarly when converting back, the Display-Text gets lost: [sample File](myFile.md) should become [[myFile.md|sample File]], but actually becomes [[myFile]].