Plugin · Mecha CMS

A lower priority extensions.

Markdown Smart Internal Links

Author: Taufik Nurrohman · 396 Views

Tweet

Automatically search for internal links.

Table of Content

Download Development Version

This plugin will generate automatic link text and title attribute based on the page path provided. If the page file you are trying to provide does not exist, this plugin will mark the automatic 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-one‌] → will be replaced into `[Page Title](/directory/directory/page-one "Page Title")`
[‌link text‌][‌link:page-one‌] → will be replaced into `[link text](/directory/directory/page-one "Page Title")`
[‌link:does-not-exist‌] → will be replaced into `<s style="color:#f00;" title="[‌link:does-not-exist‌]">link broken</s>`

All of the page path provided will be parsed relative to in which the page is stored. To go to the up level of the current page path, you can use ../ pattern:

[‌link:../blog/page-one‌] → will be replaced into `[Page Title](/directory/blog/page-one "Page Title")`

Dependency 

Plugin