mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-24 00:50:28 +00:00
Revise the last changes for "Linking in WikiText" (#3083)
`[[Open file|c://users/me/index.html]]` is a wrong syntax for linking in wikitext. `c://users/me/index.html` is not even a valid URI, although `[ext[Open file|c://users/me/index.html]]` works with Google Chrome and Microsoft Edge on Windows 10. `[ext[Open file|c:\users\me\index.html]]` works with Chrome, Edge and Firefox on Windows 10.
This commit is contained in:
parent
89e8f689bb
commit
48a98bad02
@ -43,7 +43,7 @@ https://tiddlywiki.com/
|
||||
|
||||
[[Mail me|mailto:me@where.net]]
|
||||
|
||||
[[Open file|c://users/me/index.html]]
|
||||
[[Open file|file:///c:/users/me/index.html]]
|
||||
```
|
||||
|
||||
For this syntax to work, the URL has to be recognisable as a URL. Otherwise, it is treated as a tiddler title. As a result, in case you want to link to a resource locatable using a relative path, use the extended syntax:
|
||||
@ -54,6 +54,8 @@ For this syntax to work, the URL has to be recognisable as a URL. Otherwise, it
|
||||
[ext[Open file|./index.html]]
|
||||
|
||||
[ext[Open file|../README.md]]
|
||||
|
||||
[ext[Open file|c:\users\me\index.html]]
|
||||
```
|
||||
|
||||
The extended syntax still works with full URLs, although in that case it is not necessary:
|
||||
@ -65,7 +67,7 @@ The extended syntax still works with full URLs, although in that case it is not
|
||||
|
||||
[ext[Mail me|mailto:me@where.net]]
|
||||
|
||||
[ext[Open file|c://users/me/index.html]]
|
||||
[ext[Open file|file:///c:/users/me/index.html]]
|
||||
```
|
||||
|
||||
You can also use the extended syntax to force an external link:
|
||||
|
Loading…
Reference in New Issue
Block a user