Open YJ2CS opened 3 years ago
This is not a bug, but I think a feature needs to be supported,
It is the following syntax:
[[Wiki Links|click here]] -> [click here](Wiki%20Links.md)
[[Wiki Links|click here]]
[click here](Wiki%20Links.md)
This is a feature supported by Obisdian. Below is a screenshot of its effect
Below I give a regular expression example, but I am not sure whether it is useful to you, because I did not look at the source code carefully.
There are still some problems. Normally, it should trim the spaces on both sides of the string.
/\[\[([^\x00-\x1f|]+?)(\|)+?(([\s\S]+?)?)\]\]/g
to
($3)[$1.md]
Oh I see! Will get back to a next update to this soon I think. Didn't know that was how it's being done with Obsidian these days (have yet to even try aliases haha). Thanks for mentioning this!
1
This is not a bug, but I think a feature needs to be supported,
It is the following syntax:
[[Wiki Links|click here]]
->[click here](Wiki%20Links.md)
This is a feature supported by Obisdian. Below is a screenshot of its effect
Source code
Preview
example
Below I give a regular expression example, but I am not sure whether it is useful to you, because I did not look at the source code carefully.
There are still some problems. Normally, it should trim the spaces on both sides of the string.
to