Markdown Link

Searches for internal links.

0 stars out of 5

0 0 0 0 0
  • Author Taufik Nurrohman
  • Maintainer 1
  • Member
  • Version 2.4.6

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:

  • [<span>link:page-123</span>] will be replaced with [<span>Page Title</span>](<span>http</span>://<span>127.0.0.1/path/to/page-123 "Page Title"</span>).
  • [<span>link text</span>][<span>link:page-123</span>] will be replaced with [<span>link text</span>](<span>http</span>://<span>127.0.0.1/path/to/page-123 "Page Title"</span>).
  • [<span>link:does-not-exist</span>] will be replaced with <s style="color:#f00;" title="[<span>link:does-not-exist</span>]">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 ../:

  • [<span>link:../blog/post-123</span>] will be replaced with [<span>Page Title</span>](<span>/path/blog/post-123 "Post Title"</span>).

0 Comments

No comments yet.