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

Feature Request: Optimization for links with custom display texts #16

Open Astro-Aionia opened 1 year ago

Astro-Aionia commented 1 year ago

A custom display text is always used to replace the real file name of a wiki style link:

[[Internal links.md|custom display text]]

When it was converted to standard md link format, it would become:

[Internal links.md|custom display text](Internal links.md%7Ccustom%20display%20text.md)

That means, all texts in the double square bracket was converted to file link. But in fact, there is not a file named Internal links.md%7Ccustom%20display%20text.md. That means this link can not work after converted.

It is better if the standard md link format is created as:

[custom display text](Internal links.md)

All text behind | are placed in the square bracket and All text after | are placed in the round bracket .