This extension is considered obsolete. I recommend you to just use the Link extension which is more natural and will keep the page data clean even though this extension will be removed eventually when you don’t need it. This extension last updated and known to be compatible with core version 3.0.0. After that, I do not guarantee that I will continue to update this extension. Contributors and users who still consider this extension as a necessary extension are welcome to update this extension so that it will remain compatible with newer core versions.
This extension generates link text and title attribute automatically based on the page route provided. If the page file you are trying to provide from the route does not exist, this extension will mark the link with a red strikethrough text effect.
Usage
The link syntax is exactly the same as referenced link syntax in Markdown, the only difference is that you need to add a link:
prefix to the reference ID:
[link:page-123]
will be replaced with[Page Title](http://127.0.0.1/path/to/page-123 "Page Title")
.[link text][link:page-123]
will be replaced with[link text](http://127.0.0.1/path/to/page-123 "Page Title")
.[link:does-not-exist]
will be replaced with<s role="status" style="color: #f00;" title="[link:does-not-exist]">broken link</s>
.
All of the page route provided will be parsed relative to in which the page is stored. To go to the upper level of the current page route, you can use ../
:
[link:../blog/post-123]
will be replaced with[Page Title](/path/blog/post-123 "Post Title")
.
0 Comments
No comments yet.