Mecha CMS

Add extra functionality to the core engine.

Markdown Smart Internal Links

Table of Contents
  1. Usage 

Automatically search for internal links.

Download Stable Version Download Development Version

Something looks broken? We accept bounties to fix them faster.

v2.4.5235 Downloads
v2.4.4240 Downloads

This extension 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 extension will mark the automatic link with a red strikethrough text effect.


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 with `[Page Title]( "Page Title")`
[‌link text‌][‌link:page-one‌] → will be replaced with `[link text]( "Page Title")`
[‌link:does-not-exist‌] → will be replaced with `<s style="color:#f00;" title="[‌link:does-not-exist‌]">broken link</s>`

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

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


No comments yet.